Public Overloads Function GetNodes() As IReadOnlyList(Of TopologyNode)
public IReadOnlyList<TopologyNode> GetNodes()
Return Value
A list of all the TopologyNodes that exist in the topology graph.
Public Overloads Function GetNodes() As IReadOnlyList(Of TopologyNode)
public IReadOnlyList<TopologyNode> GetNodes()
| Exception | Description |
|---|---|
| ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
// Builds the map topology graph for the active map view and displays the number of topology nodes and edges. await QueuedTask.Run(() => { //Build the map topology graph MapView.Active.BuildMapTopologyGraph<TopologyDefinition>(topologyGraph => { //Getting the nodes and edges present in the graph var topologyGraphNodes = topologyGraph.GetNodes(); var topologyGraphEdges = topologyGraph.GetEdges(); foreach (var node in topologyGraphNodes) { // do something with the node } foreach (var edge in topologyGraphEdges) { // do something with the edge } MessageBox.Show($"Number of topo graph nodes are: {topologyGraphNodes.Count}.\n Number of topo graph edges are {topologyGraphEdges.Count}.", "Map Topology Info"); }); });
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)