Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

How can I count all parentless nodes in a graph?

0 votes
Is there a way to count how many parentless nodes there are in a graph i.e. nodes that no other nodes point to?
in Help by

1 Answer

+1 vote
Use "Tools" -> "Select Elements" to select only nodes with in-degree 0, then use "Tools" -> "Analyze Graph" to count the currently selected nodes.

In "Tools" -> "Select Elements", tab "General" disable "Act On Current Selection Only" and "Select Inverse" but enable "Clear Selection First", then disable "Use These Criteria" on all tabs but the "Nodes" tab (where it has to be enabled), finally set "Select" to "Indegree" and "Minimal Degree" as well as "Maximal Degree" to "0" on tab "Nodes".
by [yWorks] (161k points)
Thanks!
Legal Disclosure | Privacy Policy
...