EdgeRenderingFunction
GraphPlotおよび関連関数のオプションであり,各辺の描画に使うグラフィックスプリミティブを生成する関数を与える.
EdgeRenderingFunction
EdgeRenderingFunction
GraphPlotおよび関連関数のオプションであり,各辺の描画に使うグラフィックスプリミティブを生成する関数を与える.
詳細
- EdgeRenderingFunction->g のとき,各辺はg[{ri,…,rj},{vi,vj},lblij]で与えられるグラフィックスプリミティブで描かれる.ただし,ri, rjは辺の始点と終点,vi, vjは最初の頂点と最後の頂点,lblijは辺に指定された任意のラベルである.
- EdgeRenderingFunctionを適用することで得られたグラフィックスプリミティブは,実質的にGraphPlotのような関数で生成されたグラフィックスに直接組み入れられる.任意の式を挿入する場合はInsetを使うことができる.
- EdgeRenderingFunction->Automaticでは,各辺はDirectedEdgesとEdgeLabelingで指定されたスタイルで描画される.
- PlotStyleの設定はデフォルト値を設定する.EdgeRenderingFunctionの明示的な指示子はデフォルト値に優先する.
例題
すべて開く すべて閉じる例 (3)
LayeredGraphPlot[{1 -> 5, 2 -> 4, 3 -> 4, 3 -> 5, 4 -> 5}, EdgeRenderingFunction -> ({Red, Arrow[#1, 0.1]}&)]GraphPlot3D[{2 -> 3, 2 -> 4, 2 -> 5, 3 -> 4, 3 -> 5, 4 -> 5}, EdgeRenderingFunction -> (Cylinder[#1, 0.05]&), VertexRenderingFunction -> (Sphere[#, 0.1]&)]GraphPlot3D[Table[1, {100}, {100}], EdgeRenderingFunction -> None, VertexRenderingFunction -> (Sphere[#, 0.05]&)]スコープ (2)
GraphPlot[{4 -> 1, 5 -> 1, 3 -> 2, 2 -> 5, 3 -> 4, 3 -> 5, 5 -> 4}, EdgeRenderingFunction -> ({Arrow[#], Inset["Mathematica", Mean[#1], Automatic, Automatic, #[[1]] - #[[2]], Background -> White]}&)]arrow = [image];GraphPlot[{2 -> 1, 3 -> 1, 4 -> 1, 5 -> 1, 6 -> 1}, EdgeRenderingFunction -> ({Line[#], Inset[arrow, Mean[#1], Automatic, Automatic, #[[2]] - #[[1]], Background -> White]}&)]テクニカルノート
-
▪
- グラフ描画 ▪
- 一般的なグラフの描画 ▪
- 有向グラフの階層的な描画 ▪
- 木の描画
テキスト
Wolfram Research (2007), EdgeRenderingFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/EdgeRenderingFunction.html.
CMS
Wolfram Language. 2007. "EdgeRenderingFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EdgeRenderingFunction.html.
APA
Wolfram Language. (2007). EdgeRenderingFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EdgeRenderingFunction.html
BibTeX
@misc{reference.wolfram_2026_edgerenderingfunction, author="Wolfram Research", title="{EdgeRenderingFunction}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/EdgeRenderingFunction.html}", note=[Accessed: 13-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_edgerenderingfunction, organization={Wolfram Research}, title={EdgeRenderingFunction}, year={2007}, url={https://reference.wolfram.com/language/ref/EdgeRenderingFunction.html}, note=[Accessed: 13-September-2026]}