ArcObjects Library Reference (GeoDatabase)  

IForwardStar.QueryAdjacentEdges Method

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

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

Parameters

Count [in]   Count is a parameter of type long adjacentEdgeEIDs [out]   adjacentEdgeEIDs is a parameter of type long reverseOrientation [out]   reverseOrientation is a parameter of type VARIANT_BOOL adjacentEdgesWeightValue [out]   adjacentEdgesWeightValue is a parameter of type VARIANT

Product Availability

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

Description

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

See also the QueryAdjacentEdge request.

Remarks

adjacentEdgeEIDs, ReverseOrientation, and adjacentEdgesWeightValue 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.

Values in the ReverseOrientation array are TRUE if the edge "enters" the junction. That is, the junction specified in FindAdjacent is the "to-junction" of the returned edge. ReverseOrientation values will be FALSE if the edge "leaves" the junction - it is the "from-junction" of the returned edge.
 
[C#]

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

[Visual Basic .NET]

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

See Also

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