EdgeTaggedGraphQ
Details
- EdgeTaggedGraphQ is typically used to test whether a graph has an edge with a tag.
Examples
open all close allBasic Examples (2)
Test whether a graph is tagged:
EdgeTaggedGraph[{12, 23, 31}]EdgeTaggedGraphQ[%]EdgeTaggedGraphQ gives False for inputs that are not tagged graphs:
CompleteGraph[5]EdgeTaggedGraphQ[%]Scope (6)
EdgeTaggedGraphQ works with undirected graphs:
EdgeTaggedGraphQ[[image]]EdgeTaggedGraphQ[[image]]EdgeTaggedGraphQ[[image]]EdgeTaggedGraphQ[[image]]EdgeTaggedGraphQ gives False for anything that is not a tagged graph:
EdgeTaggedGraphQ[x]EdgeTaggedGraphQ[Graph[garbage]]EdgeTaggedGraphQ works with large graphs:
g = GridGraph[{10, 10, 10, 10}];EdgeTaggedGraphQ[%] // Timing{VertexCount[g], EdgeCount[g]}Properties & Relations (5)
IndexEdgeTaggedGraph generates tagged graphs:
IndexEdgeTaggedGraph[WheelGraph[5]]EdgeTaggedGraphQ[%]Use UndirectedEdge to construct undirected tagged graphs:
Graph[{1Overscript[, 1]2, 2Overscript[, 1]3, 3Overscript[, 1]1}]{UndirectedGraphQ[%], EdgeTaggedGraphQ[%]}Use DirectedEdge to construct directed tagged graphs:
Graph[{1Overscript[, 1]2, 2Overscript[, 1]3, 3Overscript[, 1]1}]{DirectedGraphQ[%], EdgeTaggedGraphQ[%]}A tagged graph can have self-loops:
Graph[{12, 11, 23, 31}]{EdgeTaggedGraphQ[%], LoopFreeGraphQ[%]}EdgeTags gives the list of tags of a graph:
g = IndexEdgeTaggedGraph[CompleteGraph[4]]EdgeTaggedGraphQ[g]EdgeTags[g]Related Guides
History
Text
Wolfram Research (2020), EdgeTaggedGraphQ, Wolfram Language function, https://reference.wolfram.com/language/ref/EdgeTaggedGraphQ.html.
CMS
Wolfram Language. 2020. "EdgeTaggedGraphQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EdgeTaggedGraphQ.html.
APA
Wolfram Language. (2020). EdgeTaggedGraphQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EdgeTaggedGraphQ.html
BibTeX
@misc{reference.wolfram_2026_edgetaggedgraphq, author="Wolfram Research", title="{EdgeTaggedGraphQ}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/EdgeTaggedGraphQ.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_edgetaggedgraphq, organization={Wolfram Research}, title={EdgeTaggedGraphQ}, year={2020}, url={https://reference.wolfram.com/language/ref/EdgeTaggedGraphQ.html}, note=[Accessed: 12-June-2026]}