Examples of graphs¶
-
sage.categories.examples.graphs.
Cycle
¶ An example of a graph: the cycle of length \(n\).
This class illustrates a minimal implementation of a graph.
EXAMPLES:
sage: from sage.categories.graphs import Graphs sage: C = Graphs().example(); C An example of a graph: the 5-cycle sage: C.category() Category of graphs
We conclude by running systematic tests on this graph:
sage: TestSuite(C).run()
-
sage.categories.examples.graphs.
Example
¶ An example of a graph: the cycle of length \(n\).
This class illustrates a minimal implementation of a graph.
EXAMPLES:
sage: from sage.categories.graphs import Graphs sage: C = Graphs().example(); C An example of a graph: the 5-cycle sage: C.category() Category of graphs
We conclude by running systematic tests on this graph:
sage: TestSuite(C).run()