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 _
public void FindAdjacent (
    int fromEdgeEID,
    int AtJunctionEID,
    ref int adjacentEdgesCount
HRESULT FindAdjacent(
  long fromEdgeEID,
  long AtJunctionEID,
  long* adjacentEdgesCount


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.


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


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