ArcObjects Library Reference (GeoDatabase)  

IForwardStar.FindAdjacent Method

Finds the edge elements that are adjacent to the given junction element and returns the count.

[Visual Basic .NET]
Public Sub FindAdjacent ( _
    ByVal fromEdgeEID As Integer, _
    ByVal AtJunctionEID As Integer, _
    ByRef adjacentEdgesCount As Integer _
)
[C#]
public void FindAdjacent (
    int fromEdgeEID,
    int AtJunctionEID,
    ref int adjacentEdgesCount
);
[C++]
HRESULT FindAdjacent(
  long fromEdgeEID,
  long AtJunctionEID,
  long* adjacentEdgesCount
);
[C++]

Parameters

fromEdgeEID [in]   fromEdgeEID is a parameter of type long AtJunctionEID [in]   AtJunctionEID is a parameter of type long adjacentEdgesCount [out]   adjacentEdgesCount is a parameter of type long

Product Availability

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

Description

The FindAdjacent method returns the number of adjacent edges to a junction in the adjacentEdgesCount parameter.

Remarks

The fromEdgeID parameter is ignored unless you are querying for adjacent turns. You can set fromEdgeID = 0 when querying for adjacent edges and junctions. adjacentEdgesCount is the number of adjacent edges.


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