This document is archived and information here might be outdated.  Recommended version.


IForwardStar.QueryAdjacentJunctions Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IForwardStar Interface > IForwardStar.QueryAdjacentJunctions Method
ArcGIS Developer Help

IForwardStar.QueryAdjacentJunctions Method

Returns the opposite junctions of the adjacent edges found with FindAdjacent into the specified user-defined array.

[Visual Basic .NET]
Public Sub QueryAdjacentJunctions ( _
    ByVal Count As Integer, _
    ByRef adjacentJunctionEIDs As Integer, _
    ByRef adjacentJunctionsWeightValue As Object _
)
[C#]
public void QueryAdjacentJunctions (
    int Count,
    ref int adjacentJunctionEIDs,
    ref object adjacentJunctionsWeightValue
);
[C++]
HRESULT QueryAdjacentJunctions(
  long Count,
  System.Int32* adjacentJunctionEIDs,
  Variant* adjacentJunctionsWeightValue
);
[C++]
Parameters
Count [in]

Count is a parameter of type long adjacentJunctionEIDs [out]
adjacentJunctionEIDs is a parameter of type long* adjacentJunctionsWeightValue [out]
adjacentJunctionsWeightValue is a parameter of type VARIANT*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

QueryAdjacentJunctions returns an array of adjacent junctions and their weights. The array has adjacentEdgesCount entries, where adjacentEdgesCount is the value returned by FindAdjacent.

See also the QueryAdjacentJunction request.

Remarks

adjacentJunctionEIDs and adjacentJunctionsWeightValue are arrays that are dimensioned to at least adjacentEdgesCount, as returned by FindAdjacent. Note that the MaxDegree property of INetwork will tell you the maximum number of edges for any junction, and you can use this to allocate memory for these arrays. Count is equal to adjacentEdgesCount from FindAdjacent.

AdjacentJunctionsWeightValue contain weight values specified in the CreateForwardStar method of the INetwork interface.
[C#]

This method is not callable from C#.  Please use IForwardStarGEN::QueryAdjacentJunctions.

[Visual Basic .NET]

This method is not callable from VB.NET.  Please use IForwardStarGEN::QueryAdjacentJunctions.

See Also

IForwardStar Interface | IForwardStar.QueryAdjacentEdge Method | IForwardStar.QueryAdjacentJunctions Method | IForwardStar.QueryAtTurns Method | IForwardStar.QueryAtTurn Method | IForwardStar.FindAdjacent Method | IForwardStar.QueryAdjacentEdges Method | IForwardStar.Network Property | IForwardStar.QueryAdjacentJunction Method | INetwork.CreateForwardStar Method