MarkedGraph.reorientAllWith

MarkedGraph.reorientAllWith(mark)

Set all endpoint marks in the graph to the given mark.

Parameters:

mark (pyagrum.EdgeMark) – the mark to set everywhere (pyagrum.EdgeMark.Circle, Tail or Arrowhead)

Return type:

None

Example

import pyagrum as gum

g = gum.fastMarkedGraph("A->B<->C")
g.reorientAllWith(gum.EdgeMark.Circle)
print(g)
# {0<A>,1<B>,2<C>} , {0 o-o 1, 1 o-o 2}

Used by

MarkedGraph, PAG

Inheritance diagram of pyagrum.MarkedGraph, pyagrum.PAG