ArcObjects Library Reference (GeoDatabase)  

IForwardStar.QueryAdjacentEdge Method

Returns index'th adjacent edge found with FindAdjacent, its orientation, and its weight value.

[Visual Basic .NET]
Public Sub QueryAdjacentEdge ( _
    ByVal Index As Integer, _
    ByRef adjacentEdgeEID As Integer, _
    ByRef reverseOrientation As Boolean, _
    ByRef adjacentEdgeWeightValue As Object _
)
[C#]
public void QueryAdjacentEdge (
    int Index,
    ref int adjacentEdgeEID,
    ref bool reverseOrientation,
    ref object adjacentEdgeWeightValue
);
[C++]
HRESULT QueryAdjacentEdge(
  long Index,
  long* adjacentEdgeEID,
  VARIANT_BOOL* reverseOrientation,
  VARIANT* adjacentEdgeWeightValue
);
[C++]

Parameters

Index [in]   Index is a parameter of type long adjacentEdgeEID [out]   adjacentEdgeEID is a parameter of type long reverseOrientation [out]   reverseOrientation is a parameter of type VARIANT_BOOL adjacentEdgeWeightValue [out]   adjacentEdgeWeightValue is a parameter of type VARIANT

Product Availability

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

Remarks

Index is a number between 0 and n-1, where n is the number of adjacent edges returned by FindAdjacent. AdjacentEdgeWeightValue is the value of the weight specified in the CreateForwardStar method of the INetwork interface.

ReverseOrientation is TRUE if the edge "enters" the junction. That is, the junction specified in FindAdjacent is the "to-junction" of the returned edge. ReverseOrientation will be FALSE if the edge "leaves" the junction - it is the "from-junction" of the returned edge. When ReverseOrientation is TRUE, the weight value returned will be the pToFromEdgeWeight specified in INetwork::CreateForwardStar method. When FALSE, the value is the pFromToEdgeWeight specified.

See Also

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