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


IForwardStar.FindAdjacent Method (ArcObjects .NET 10.5 SDK)
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.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