-
Notifications
You must be signed in to change notification settings - Fork 6
Basic Inspection
Ed Scheinerman edited this page Sep 19, 2018
·
14 revisions
-
NV(G): the number of vertices. -
NE(G): the number of edges. -
vlist(G): list containing the vertices. -
elist(G): list containing the edges. -
has(G,v): isva vertex ofG? -
has(G,v,w): is(v,w)an edge ofG? -
neighbors(G,v): list ofv's neighbors. AlsoG[v]. -
deg(G,v): degree of vertexv. -
deg(G): sorted list of vertex degrees.