WOLFRAM

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)Summary of the most common use cases

A list of edges incident to vertex 1:

Out[1]=1

Find all vertices adjacent to vertices that match the pattern:

Out[1]=1

Highlight incidence edges:

Out[2]=2

Scope  (6)Survey of the scope of standard use cases

IncidenceList works with undirected graphs:

Out[1]=1

Directed graphs:

Out[1]=1

Use rules to specify the graph:

Out[1]=1

Use patterns to obtain edges incident to a selected subset of vertices:

Out[1]=1

Obtain incident edges d steps away from a vertex:

Out[1]=1

IncidenceList works with large graphs:

Out[2]=2

Properties & Relations  (2)Properties of the function, and connections to other functions

IncidenceList can be found using NeighborhoodGraph:

Out[2]=2
Out[3]=3

AdjacencyList can be found using IncidenceList:

Out[2]=2
Out[3]=3
Wolfram Research (2012), IncidenceList, Wolfram Language function, https://reference.wolfram.com/language/ref/IncidenceList.html (updated 2015).
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).

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.

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

Wolfram Language. (2012). IncidenceList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IncidenceList.html

BibTeX

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

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

BibLaTeX

@online{reference.wolfram_2025_incidencelist, organization={Wolfram Research}, title={IncidenceList}, year={2015}, url={https://reference.wolfram.com/language/ref/IncidenceList.html}, note=[Accessed: 25-March-2025 ]}

@online{reference.wolfram_2025_incidencelist, organization={Wolfram Research}, title={IncidenceList}, year={2015}, url={https://reference.wolfram.com/language/ref/IncidenceList.html}, note=[Accessed: 25-March-2025 ]}