IncidenceList
IncidenceList[g,v]
gives a list of edges incident to vertex v.
IncidenceList[g,patt]
gives a list of edges incident to vertices that match the pattern patt.
IncidenceList[g,patt,d]
gives a list of incident edges d steps away.
IncidenceList[{vw,…},…]
uses rules vw to specify the graph g.
Details
- IncidenceList is typically used to represent the incidence (or connection) between vertices and edges.
- IncidenceList returns the list of edges in the order used by the graph g.
Examples
open allclose allBasic Examples (3)
Scope (6)
IncidenceList works with undirected graphs:
Use rules to specify the graph:
Use patterns to obtain edges incident to a selected subset of vertices:
Obtain incident edges d steps away from a vertex:
IncidenceList works with large graphs:
Properties & Relations (2)
Text
Wolfram Research (2012), IncidenceList, Wolfram Language function, https://reference.wolfram.com/language/ref/IncidenceList.html (updated 2015).
CMS
Wolfram Language. 2012. "IncidenceList." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/IncidenceList.html.
APA
Wolfram Language. (2012). IncidenceList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IncidenceList.html