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 all

Basic Examples  (3)

A list of edges incident to vertex 1:

Find all vertices adjacent to vertices that match the pattern:

Highlight incidence edges:

Scope  (6)

IncidenceList works with undirected graphs:

Directed 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)

IncidenceList can be found using NeighborhoodGraph:

AdjacencyList can be found using IncidenceList:

Wolfram Research (2012), IncidenceList, Wolfram Language function, https://reference.wolfram.com/language/ref/IncidenceList.html (updated 2015).

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

BibTeX

@misc{reference.wolfram_2024_incidencelist, author="Wolfram Research", title="{IncidenceList}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/IncidenceList.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_incidencelist, organization={Wolfram Research}, title={IncidenceList}, year={2015}, url={https://reference.wolfram.com/language/ref/IncidenceList.html}, note=[Accessed: 18-November-2024 ]}