jtextor / dagitty

Graphical analysis of structural causal models / graphical causal models.
GNU General Public License v2.0
255 stars 47 forks source link

GraphAnalyzer.topologicalOrdering not ordering isolated nodes #54

Open benibela opened 2 years ago

benibela commented 2 years ago

For isolated nodes (with no parents and no children) GraphAnalyzer.topologicalOrdering returns index 0.

E.g. a graph with nodes A,B,C,D and one edge A -> B gets an order {A: 1, B:2, C:0, D:0}

Is that on purpose?