MarkedGraph.skeleton

MarkedGraph.skeleton()
Returns:

the undirected graph of the adjacencies, with the names of the nodes

Return type:

pyagrum.UndiGraph

Example

import pyagrum as gum

g = gum.fastMarkedGraph("A->B<->C;C o-o D")
print(g.skeleton())
# {0<A>,1<B>,2<C>,3<D>} , {0--1,2--3,1--2}

Used by

MarkedGraph, PAG

Inheritance diagram of pyagrum.MarkedGraph, pyagrum.PAG