ShortestPathFunction[type,data]
グラフ中のソース頂点 s からターゲット頂点 t までの最短経路を与える関数を表す.
ShortestPathFunction
ShortestPathFunction[type,data]
グラフ中のソース頂点 s からターゲット頂点 t までの最短経路を与える関数を表す.
詳細
- ShortestPathFunction[…]はFindShortestPathによって生成される.
- ShortestPathFunction[{s,All},…][t]は s から t までの最短経路を与える.
- ShortestPathFunction[{All,t},…][s]は s から t までの最短経路を与える.
- ShortestPathFunction[{All,All},…][s,t]は s から t までの最短経路を与える.
例題
すべて開く すべて閉じるスコープ (7)
ShortestPathFunctionは無向グラフに使うことができる:
ShortestPathFunctionはある決まった頂点からの最短経路を与えることができる:
経路が存在しない場合はShortestPathFunctionは{}を返す:
関連するガイド
テキスト
Wolfram Research (2010), ShortestPathFunction, Wolfram言語関数, https://reference.wolfram.com/language/ref/ShortestPathFunction.html.
CMS
Wolfram Language. 2010. "ShortestPathFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ShortestPathFunction.html.
APA
Wolfram Language. (2010). ShortestPathFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ShortestPathFunction.html
BibTeX
@misc{reference.wolfram_2025_shortestpathfunction, author="Wolfram Research", title="{ShortestPathFunction}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/ShortestPathFunction.html}", note=[Accessed: 29-October-2025]}
BibLaTeX
@online{reference.wolfram_2025_shortestpathfunction, organization={Wolfram Research}, title={ShortestPathFunction}, year={2010}, url={https://reference.wolfram.com/language/ref/ShortestPathFunction.html}, note=[Accessed: 29-October-2025]}