Skip to content

Creating Graphs

Ed Scheinerman edited this page Sep 19, 2018 · 14 revisions

Creating Graphs

A blank slate

Create a new graph with G = SimpleGraph(). The vertices of this graph may be any Julia type. More likely, a user will use G = SimpleGraph{T}() in which vertices are of type T. Two special cases are provided:

  • IntGraph() is equivalent to SimpleGraph{Int}(). One may also have G = IntGraph(n) which will create a graph whose vertex set is {1,2,...,n} (with no edges).
  • StringGraph() is equivalent to SimpleGraph{String}().
Clone this wiki locally