Input graph, specified as either a graph
or digraph
object.
Use the graph
function to create
an undirected graph or the digraph
function
to create a directed graph.
For more information, see graph or digraph.
Example: G = graph(1,2)
Example: G = digraph([1 2],[2 3])