OUTERPLANAR GRAPHS
----------------------------------------------------------------------
# RECOGNITION

from graphtheory.structures.edges import Edge
from graphtheory.structures.graphs import Graph

----------------------------------------------------------------------
# GENERATORS

from graphtheory.planarity.genouterplanar import MaximalOuterplanarGenerator

algorithm = MaximalOuterplanarGenerator(n)   # n is the number of vertices
algorithm.run()
algorithm.graph.show()   # random maximal outerplanar graph
----------------------------------------------------------------------
# VERTEX COLORING

from graphtheory.planarity.nodecolorouterplanar import OuterplanarNodeColoring

algorithm = OuterplanarNodeColoring(G)   # O(V) time
algorithm.run()
print ( algorithm.color )   # dict
----------------------------------------------------------------------
EOF
