グラフ g の辺のタグをそれぞれの辺の指標に設定する.
IndexEdgeTaggedGraph[g,r]
辺のタグを r,r+1,…に設定する.
IndexEdgeTaggedGraph
グラフ g の辺のタグをそれぞれの辺の指標に設定する.
IndexEdgeTaggedGraph[g,r]
辺のタグを r,r+1,…に設定する.
詳細とオプション
- IndexEdgeTaggedGraphは,主にグラフ内のすべての辺について一意的なタグを設定するために使われる.
- デフォルトで,辺に使われるタグは1から始まる整数である.既存のタグは上書きされる.
- IndexEdgeTaggedGraphは,有向グラフ,無向グラフ,多重グラフ,混合グラフに使うことができる.
- IndexEdgeTaggedGraphはGraphと同じオプションをサポートする.
全オプションのリスト
例題
すべて開く すべて閉じる例 (2)
スコープ (6)
IndexEdgeTaggedGraphは無向グラフに使うことができる:
IndexEdgeTaggedGraph[[image]]IndexEdgeTaggedGraph[[image]]IndexEdgeTaggedGraph[[image]]IndexEdgeTaggedGraph[[image]]IndexEdgeTaggedGraph[{1 -> 3, 2 -> 1, 3 -> 6, 4 -> 6, 1 -> 5, 5 -> 4, 6 -> 1}]IndexEdgeTaggedGraphは大きいグラフに使うことができる:
g = GridGraph[{10, 10, 10, 10}];Timing[h = IndexEdgeTaggedGraph[g];]{VertexCount[h], EdgeCount[h]}オプション (85)
AnnotationRules (3)
IndexEdgeTaggedGraph[CompleteGraph[3], AnnotationRules -> {1 -> {VertexLabels -> "hello"}}]IndexEdgeTaggedGraph[CompleteGraph[3], AnnotationRules -> {1Overscript[, 1]2 -> {EdgeLabels -> "hello"}}]IndexEdgeTaggedGraph[CompleteGraph[3], AnnotationRules -> {"GraphProperties" -> {"Message" -> "hello"}}]AnnotationValue[%, "Message"]DirectedEdges (2)
デフォルトで,規則のリストが与えられると有向グラフが生成される:
IndexEdgeTaggedGraph[{1 -> 2, 2 -> 3, 3 -> 1}]DirectedEdges->Falseを使って規則を無向辺として解釈する:
IndexEdgeTaggedGraph[{1 -> 2, 2 -> 3, 3 -> 1}, DirectedEdges -> False]DirectedEdgeまたはUndirectedEdgeを使ってグラフが有向か無向かを直接指定する:
{IndexEdgeTaggedGraph[{12, 23, 31}], IndexEdgeTaggedGraph[{12, 23, 31}]}EdgeLabels (7)
IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> {1Overscript[, 1]2 -> "Hello"}]el = {1Overscript[, 1]2, 1Overscript[, 2]3, 2Overscript[, 3]3};IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> Table[el[[i]] -> Subscript[e, i], {i, Length[el]}]]IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> {1Overscript[, 1]2 -> [image], 2Overscript[, 3]3 -> [image], 1Overscript[, 2]3 -> [image]}]Placedを記号位置と一緒に使って辺に沿ったラベルの置き方を制御する:
Table[IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> {1Overscript[, 1]2 -> Placed["■■■", p]}, PlotLabel -> p], {p, {"Start", "Middle", "End"}}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> {1Overscript[, 1]2 -> Placed["■■■", p]}, PlotLabel -> p, BaselinePosition -> Axis], {p, {0, 1 / 3, 1 / 4}}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> {1Overscript[, 2]3 -> Placed["■■■", {1 / 2, p}]}, PlotLabel -> p, BaselinePosition -> Axis], {p, {{0, 0}, {1 / 2, 1 / 2}, {1, 1}}}]Placedを使って複数のラベルを置く:
IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> {1Overscript[, 1]2 -> Placed[{"lbl1", "lbl2"}, {"Start", "End"}]}]IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> {1Overscript[, 1]2 -> Placed[{"lbl1", "lbl2", "lbl3"}, {"Start", "Middle", "End"}]}]EdgeLabelsを使って複数のラベルを置く:
IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> {1Overscript[, 1]2 -> Placed[{"lbl1", "lbl2"}, {"Start", "End"}]}]TooltipおよびStatusAreaからの値によって,自動的にラベルを付ける:
IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> Placed["Name", Tooltip]]IndexEdgeTaggedGraph[CompleteGraph[3], EdgeLabels -> Placed["Name", StatusArea]]EdgeShapeFunction (6)
EdgeShapeFunctionの組込み設定のリストを得る:
ResourceData["EdgeShapeFunction"]IndexEdgeTaggedGraph[CompleteGraph[3], EdgeShapeFunction -> "Line"]Table[IndexEdgeTaggedGraph[CompleteGraph[3], EdgeShapeFunction -> {{ef, "ArrowSize" -> 0.1}}, PlotLabel -> ef], {ef, {"BoxLine", "DiamondLine", "DotLine"}}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], EdgeShapeFunction -> {{ef, "ArrowSize" -> 0.1}}, PlotLabel -> Style[ef, 10]], {ef, ResourceData["EdgeShapeFunction", "FilledArrow"]}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], EdgeShapeFunction -> {{ef, "ArrowSize" -> 0.1}}, PlotLabel -> Style[ef, 9]], {ef, ResourceData["EdgeShapeFunction", "UnfilledArrow"]}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], EdgeShapeFunction -> {{ef, "ArrowSize" -> 0.1}}, PlotLabel -> Style[ef, 10]], {ef, ResourceData["EdgeShapeFunction", "CarvedArrow"]}]IndexEdgeTaggedGraph[Graph[{12, 23, 31}], EdgeShapeFunction -> {1Overscript[, 1]2 -> "FilledArrow"}]IndexEdgeTaggedGraph[Graph[{12, 23, 31}], EdgeShapeFunction -> {1Overscript[, 1]2 -> "FilledArrow", "CarvedArrow"}]ef[pts_List, e_] :=
Block[{s = 0.015, g = [image]}, {Arrowheads[{{s, 0.33, g}, {s, 0.67, g}}], Arrow[pts]}]IndexEdgeTaggedGraph[CompleteGraph[3], EdgeShapeFunction -> ef]EdgeShapeFunctionはEdgeStyleと組み合せることができる:
IndexEdgeTaggedGraph[CompleteGraph[3], EdgeStyle -> Blue, EdgeShapeFunction -> (Line[#1]&)]EdgeShapeFunctionはEdgeStyleより優先順位が高い:
IndexEdgeTaggedGraph[CompleteGraph[3], EdgeStyle -> Blue, EdgeShapeFunction -> ({Red, Line[#1]}&)]EdgeStyle (4)
Table[IndexEdgeTaggedGraph[CompleteGraph[3], EdgeStyle -> style], {style, {Gray, Dashed, Thick}}]IndexEdgeTaggedGraph[CompleteGraph[3], EdgeStyle -> {1Overscript[, 1]2 -> Blue, 2Overscript[, 3]3 -> Dashed}]EdgeStyleはEdgeShapeFunctionと組み合せることができる:
ef1[el_, ___] := Arrow[el, 0.1]IndexEdgeTaggedGraph[CompleteGraph[3], EdgeStyle -> Blue, EdgeShapeFunction -> ef1]EdgeShapeFunctionはEdgeStyleより優先順位が高い:
ef2[el_, ___] := {Red, Arrow[el, 0.1]}IndexEdgeTaggedGraph[CompleteGraph[3], EdgeStyle -> Blue, EdgeShapeFunction -> ef2]EdgeStyleはBaseStyleと組み合せることができる:
IndexEdgeTaggedGraph[CompleteGraph[3], BaseStyle -> Red, EdgeStyle -> Dashed]IndexEdgeTaggedGraph[CompleteGraph[3], BaseStyle -> Red, EdgeStyle -> Blue]EdgeWeight (2)
IndexEdgeTaggedGraph[CompleteGraph[3], EdgeWeight -> RandomInteger[5, 3]]WeightedAdjacencyMatrix[%]//MatrixFormIndexEdgeTaggedGraph[CompleteGraph[3], EdgeWeight -> {a, b, c}]WeightedAdjacencyMatrix[%]//MatrixFormGraphHighlight (3)
IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> Tiny, GraphHighlight -> {1}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> Tiny, GraphHighlight -> {2Overscript[, 3]3}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> Tiny, GraphHighlight -> {1, 2, 1Overscript[, 2]3, 2Overscript[, 3]3}]GraphHighlightStyle (2)
GraphHighlightStyleの組込み設定のリストを得る:
ResourceData["GraphHighlightStyle"]GraphHighlightStyleの組込み設定を使う:
IndexEdgeTaggedGraph[CompleteGraph[3], GraphHighlight -> {1, 23}, VertexSize -> Small, GraphHighlightStyle -> #, PlotLabel -> #]& /@ Select[ResourceData["GraphHighlightStyle"], # =!= Automatic&]GraphLayout (5)
EdgeTaggedGraph[{12, 23, 31}, GraphLayout -> Automatic]Table[EdgeTaggedGraph[Table[ii + 1, {i, 20}], GraphLayout -> l, PlotLabel -> l], {l, {"CircularEmbedding", "SpiralEmbedding"}}]el = EdgeList@GridGraph[{10, 10}];Table[
EdgeTaggedGraph[el, GraphLayout -> l, PlotLabel -> Style[l, 10]], {l, {"SpringEmbedding", "SpringElectricalEmbedding", "HighDimensionalEmbedding"}}]VertexCoordinatesはGraphLayout座標を無効にする:
{IndexEdgeTaggedGraph[CompleteGraph[3], GraphLayout -> "SpringElectricalEmbedding"],
IndexEdgeTaggedGraph[CompleteGraph[3], GraphLayout -> "SpringElectricalEmbedding", VertexCoordinates -> Table[{i, i}, {i, 0, 2}]]}レイアウトアルゴリズムを使って計算されたVertexCoordinatesを,AbsoluteOptionsを使って抽出する:
IndexEdgeTaggedGraph[CompleteGraph[3]]AbsoluteOptions[%, VertexCoordinates]PlotTheme (4)
基本テーマ (2)
VertexCoordinates (3)
IndexEdgeTaggedGraph[CompleteGraph[3]]AbsoluteOptionsを使って結果の頂点座標を抽出する:
AbsoluteOptions[%, VertexCoordinates]ellipseLayout[n_, {a_, b_}] := Table[{a Cos[2Pi / n u], b Sin[2Pi / n u]}, {u, 1, n}]Graphics[Point[ellipseLayout[10, {2, 1}]]]IndexEdgeTaggedGraph[CompleteGraph[10], VertexCoordinates -> ellipseLayout[10, {2, 1}]]VertexCoordinatesはGraphLayoutより優先順位が高い:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexCoordinates -> Table[{i, i}, {i, 3}], GraphLayout -> "CircularEmbedding"]VertexLabels (13)
IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> "Name"]IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> {1 -> "one"}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> Table[i -> Subscript[v, i], {i, 3}]]IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> {1 -> [image], 2 -> [image], 3 -> [image]}, ImagePadding -> 20]Placedを記号位置と一緒に使って外側位置を含むラベルの置き方を制御する:
Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.1, VertexShapeFunction -> "Square", VertexLabels -> Table[i -> Placed["■■■", p], {i, 3}], PlotLabel -> p, ImagePadding -> 20], {p, {Before, After, Below, Above}}]pl = {{Before, Below}, {After, Below}, {Before, Above}, {After, Above}};Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.1, VertexShapeFunction -> "Square", ImagePadding -> 20, VertexLabels -> Table[i -> Placed["■■■", p], {i, 3}], PlotLabel -> p], {p, pl}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.25, VertexLabels -> Table[i -> Placed["■", p], {i, 3}], VertexShapeFunction -> "Square", PlotLabel -> p], {p, {Left, Top, Right, Bottom}}]pl = {{Left, Bottom}, {Right, Bottom}, {Left, Top}, {Right, Top}};Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.25, VertexShapeFunction -> "Square", VertexLabels -> Table[i -> Placed["■", p], {i, 3}], PlotLabel -> p], {p, pl}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.25, VertexShapeFunction -> "Square", VertexLabels -> Table[i -> Placed[[image], p], {i, 3}], PlotLabel -> p, BaselinePosition -> Bottom], {p, {{0, 0}, {1 / 2, 1 / 2}, {1, 1}}}]すべてのラベルを頂点の右上コーナーに置き,ラベル内で座標を変える:
Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.35, VertexShapeFunction -> "Square", VertexLabels -> Table[i -> Placed[[image], {{1, 1}, p}], {i, 3}], PlotLabel -> p, BaselinePosition -> Bottom], {p, {{0, 0}, {1 / 2, 1 / 2}, {1, 1}}}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> {1 -> Placed[{"lbl1", "lbl2"}, {Above, Below}]}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> {1 -> Placed[{"lbl1", "lbl2", "lbl3", "lbl4"}, {Above, After, Below, Before}]}]Placedに引数を使ってTooltipを含むフォーマットを制御する:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> Placed["Name", Tooltip]]あるいは,StatusAreaを含むフォーマットを制御する:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> Placed["Name", StatusArea]]rotateLabel[lab_] := Rotate[lab, 45Degree]IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> Table[i -> Placed["xxx", Below, rotateLabel], {i, 3}]]panelLabel[lab_] := Panel[lab, FrameMargins -> 0, Background -> StandardBlue]IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> Table[i -> Placed["xxx", Center, panelLabel], {i, 3}]]hyperlinkLabel[lab_] := Hyperlink[lab, "http://www.wolfram.com"]IndexEdgeTaggedGraph[CompleteGraph[3], VertexLabels -> Table[i -> Placed["xxx", Center, hyperlinkLabel], {i, 3}]]VertexShape (5)
任意のGraphics,ImageあるいはGraphics3Dを頂点の形として使う:
Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexShape -> s, VertexSize -> Medium], {s, {[image], [image], [image]}}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexShape -> {2 -> [image]}, VertexSize -> Medium]VertexShapeはVertexSizeと組み合せることができる:
Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> s, VertexShape -> [image], PlotLabel -> s], {s, {Small, Large}}]VertexShapeはVertexStyleの影響は受けない:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.2, VertexShape -> [image], VertexStyle -> Blue]VertexShapeFunctionはVertexShapeより優先順位が高い:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.1, VertexShapeFunction -> "Square", VertexShape -> [image]]VertexShapeFunction (10)
VertexShapeFunctionの組込みコレクションのリストを得る:
ResourceData["VertexShapeFunction"]"Basic"コレクション中のVertexShapeFunctionについての設定を使う:
ResourceData["VertexShapeFunction", "Basic"]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexShapeFunction -> vf, VertexSize -> 0.2, PlotLabel -> vf], {vf, {"Triangle", "Square", "Rectangle", "Pentagon", "Hexagon", "Octagon"}}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexShapeFunction -> vf, VertexSize -> 0.2, PlotLabel -> vf], {vf, {"DownTrapezoid", "UpTrapezoid", "Parallelogram", "FiveDown", "Circle", "Diamond", "Star", "Capsule"}}]"Rounded"コレクション中のVertexShapeFunctionについての組込み設定を使う:
ResourceData["VertexShapeFunction", "Rounded"]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexShapeFunction -> vf, VertexSize -> 0.2, PlotLabel -> vf], {vf, ResourceData["VertexShapeFunction", "Rounded"]}]"Concave"コレクション中のVertexShapeFunctionについての組込み設定を使う:
ResourceData["VertexShapeFunction", "Concave"]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexShapeFunction -> vf, VertexSize -> 0.2, PlotLabel -> vf], {vf, ResourceData["VertexShapeFunction", "Concave"]}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexShapeFunction -> { 1 -> "Square"}, VertexSize -> 0.2]IndexEdgeTaggedGraph[CompleteGraph[3], VertexShapeFunction -> { 1 -> "Square", "Triangle"}, VertexSize -> 0.2]IndexEdgeTaggedGraph[CompleteGraph[3], VertexShapeFunction -> (Inset[[image], #]&)]vf[{xc_, yc_}, name_, {w_, h_}] :=
Block[{xmin = xc - w, xmax = xc + w, ymin = yc - h, ymax = yc + h},
Polygon[{{xmin, ymin}, {xmax, ymax}, {xmin, ymax}, {xmax, ymin}}]
];IndexEdgeTaggedGraph[CompleteGraph[3], VertexShapeFunction -> vf, VertexSize -> 0.2]VertexShapeFunctionはVertexStyleと組み合せることができる:
vf1[{xc_, yc_}, name_, {w_, h_}] := Rectangle[{xc - w, yc - h}, {xc + w, yc + h}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.2, VertexStyle -> Blue, VertexShapeFunction -> vf1]VertexShapeFunctionはVertexStyleより優先順位が高い:
vf2[{xc_, yc_}, name_, {w_, h_}] := {Red, Rectangle[{xc - w, yc - h}, {xc + w, yc + h}]}IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.2, VertexStyle -> Blue, VertexShapeFunction -> vf2]VertexShapeFunctionはVertexSizeと組み合せることができる:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexShapeFunction -> "Star", VertexSize -> {1 -> Small, Medium}]VertexShapeFunctionはVertexShapeより優先順位が高い:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.3, VertexShapeFunction -> "Star", VertexShape -> [image]]VertexSize (8)
IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> Automatic]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> s, PlotLabel -> s], {s, {Tiny, Small, Medium, Large}}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> s, PlotLabel -> s], {s, 0.1, 1, 0.3}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> {"Scaled", s}, PlotLabel -> {"Scaled", s}], {s, 0.1, 1, 0.3}]Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> s, PlotLabel -> s], {s, {{0.1, 0.2}, {0.2, 0.1}}}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> {1 -> 0.2, 2 -> 0.3}]VertexSizeはVertexShapeFunctionと組み合せることができる:
Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> s, VertexShapeFunction -> "Square", PlotLabel -> s], {s, {0.05, 0.1, 0.2}}]VertexSizeはVertexShapeと組み合せることができる:
Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> s, VertexShape -> [image], PlotLabel -> s], {s, {0.1, 0.2, 0.4}}]VertexStyle (5)
Table[IndexEdgeTaggedGraph[CompleteGraph[3], VertexStyle -> style, VertexSize -> 0.3], {style, {Yellow, EdgeForm[Dashed]}}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexStyle -> {1 -> Blue, 2 -> Red}, VertexSize -> 0.2]VertexShapeFunctionはVertexStyleと組み合せることができる:
vf1[{xc_, yc_}, name_, {w_, h_}] := Rectangle[{xc - w, yc - h}, {xc + w, yc + h}]IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.2, VertexStyle -> Blue, VertexShapeFunction -> vf1]VertexShapeFunctionはVertexStyleより優先順位が高い:
vf2[{xc_, yc_}, name_, {w_, h_}] := {Red, Rectangle[{xc - w, yc - h}, {xc + w, yc + h}]}IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.2, VertexStyle -> Blue, VertexShapeFunction -> vf2]VertexStyleはBaseStyleと組み合せることができる:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexStyle -> LightBlue, BaseStyle -> EdgeForm[Dotted], VertexSize -> 0.2]VertexStyleはBaseStyleより優先順位が高い:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexStyle -> LightBlue, BaseStyle -> Gray, VertexSize -> 0.2]VertexShapeはVertexStyleの影響は受けない:
IndexEdgeTaggedGraph[CompleteGraph[3], VertexSize -> 0.2, VertexShape -> [image], VertexStyle -> Blue]VertexWeight (3)
IndexEdgeTaggedGraph[CompleteGraph[3], VertexWeight -> {2, 3, 4}]AnnotationValue[{%, 1}, VertexWeight]IndexEdgeTaggedGraph[CompleteGraph[3], VertexWeight -> {1 -> 2}]AnnotationValue[{%, 1}, VertexWeight]IndexEdgeTaggedGraph[CompleteGraph[3], VertexWeight -> {a, b, c}]AnnotationValue[{%, 1}, VertexWeight]アプリケーション (3)
基本的なアプリケーション (1)
特性と関係 (3)
IndexEdgeTaggedGraphはもとのグラフと同数の頂点を持つ:
g = [image];VertexCount[g] == VertexCount[IndexEdgeTaggedGraph[g, 10]]IndexEdgeTaggedGraphはもとのグラフと同数の辺を持つ:
g = [image];EdgeCount[g] == EdgeCount[IndexEdgeTaggedGraph[g]]IndexEdgeTaggedGraphはもとのグラフと同じ隣接行列を持つ:
g = RandomGraph[{10, 20}]MatrixPlot[AdjacencyMatrix[#]]& /@ {g, IndexEdgeTaggedGraph[g]}関連するガイド
テキスト
Wolfram Research (2020), IndexEdgeTaggedGraph, Wolfram言語関数, https://reference.wolfram.com/language/ref/IndexEdgeTaggedGraph.html.
CMS
Wolfram Language. 2020. "IndexEdgeTaggedGraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IndexEdgeTaggedGraph.html.
APA
Wolfram Language. (2020). IndexEdgeTaggedGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IndexEdgeTaggedGraph.html
BibTeX
@misc{reference.wolfram_2026_indexedgetaggedgraph, author="Wolfram Research", title="{IndexEdgeTaggedGraph}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/IndexEdgeTaggedGraph.html}", note=[Accessed: 27-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_indexedgetaggedgraph, organization={Wolfram Research}, title={IndexEdgeTaggedGraph}, year={2020}, url={https://reference.wolfram.com/language/ref/IndexEdgeTaggedGraph.html}, note=[Accessed: 27-November-2026]}