enter specific graph

asked 5 years ago

Probably a very dumb question but I couldn't find the answer online...

How do I enter a specific graph in sage? I want to say how many vertices I have and then add the edges (0,2) for an edge that goes from vertice 0 to vertice 2.

For instance I only found specific graphs (full graphs, path graphs etc)

Preview: (hide)

Comments

1

You will find many examples in the online documentation and in the book Computational Mathematics with SageMath

David Coudert gravatar imageDavid Coudert ( 5 years ago )