グラフ g の最短の中国人郵便配達順路を求める.
FindPostmanTour[g,k]
最高で k の中国人郵便配達順路を求める.
FindPostmanTour[{vw,…},…]
規則 vw を使ってグラフ g を指定する.
FindPostmanTour
グラフ g の最短の中国人郵便配達順路を求める.
FindPostmanTour[g,k]
最高で k の中国人郵便配達順路を求める.
FindPostmanTour[{vw,…},…]
規則 vw を使ってグラフ g を指定する.
詳細
- 中国人郵便配達順路とはすべての辺を少なくとも1回通る順路のことである.
- FindPostmanTourは中国人郵便配達順路からなる辺のリストを返す.
- FindPostmanTourは,中国人郵便配達順路が存在しない場合は{}を返す.
- FindPostmanTour[g]はFindPostmanTour[g,1]と等価である.
- FindPostmanTourは,無向グラフ,有向グラフ,重み付きグラフ,多重グラフに使うことができる.
例題
すべて開く すべて閉じる例 (2)
g = [image];FindPostmanTour[g]//FirstTable[HighlightGraph[g, %[[1 ;; i]]], {i, 0, Length[%]}]g = GraphData["ParachuteGraph"];FindPostmanTour[g, 2]スコープ (8)
FindPostmanTourは無向グラフに使うことができる:
FindPostmanTour[[image]]FindPostmanTour [[image]]FindPostmanTour[[image]]FindPostmanTour[[image]]FindPostmanTour[[image], 3]FindPostmanTour[{1 -> 4, 4 -> 3, 4 -> 2, 2 -> 3, 3 -> 1}]中国人郵便配達順路が存在しないグラフに対しては,FindPostmanTourは空の結果を返す:
FindPostmanTour[[image]]FindPostmanTourは大きいグラフに使うことができる:
g = GridGraph[{10, 10, 10}];FindPostmanTour[g]//Short//Timingアプリケーション (3)
新聞配達少年が近所に新聞配達をする際に使うことのできる最短順路を求める:
g = [image];route = First[FindPostmanTour[g]]Length[route]Total[AnnotationValue[{g, #}, EdgeWeight]& /@ route]郵便配達人が,配達にかかる時間と配達せずに歩く時間(デッドヘディング時間)を知っている場合の郵便配達に最も効率的な方法を求める:
g = [image];すべての道を通り,配達に使わない時間を最短にするための順路:
route = First[FindPostmanTour[g]]Annotate[g, Epilog -> {Arrowheads[Join[{0}, ConstantArray[.06, 11]]], Thickness[.01], Opacity[.5], Orange, Arrow[BSplineCurve[(AnnotationValue[{g, #}, VertexCoordinates]& /@ Append[route[[All, 1]], "A"]), SplineDegree -> 2]]}]deliverytime = Total[AnnotationValue[{g, #}, "DeliveryTime"]& /@ EdgeList[g]]deadheadtime = Total[AnnotationValue[{g, #}, EdgeWeight]& /@ route] - Total[AnnotationValue[{g, #}, EdgeWeight]& /@ EdgeList[g]]deadheadtime + deliverytimeg = [image];VertexReplace[LineGraph[g], Thread[Range[EdgeCount[g]] -> EdgeList[g]], VertexLabels -> Placed["Name", Above]]Map[First, First[FindPostmanTour[%]], {2}]特性と関係 (2)
g = GraphData["OctahedralGraph"]EulerianGraphQ[g]FindPostmanTour[g]FindEulerianCycle[g] == %g = Graph[{12, 23, 31, 45, 56, 64, 34}]{ConnectedGraphQ[g], FindPostmanTour[g]}おもしろい例題 (1)
g = [image];Shallow[tour = First[FindPostmanTour[g]]]color[tours_] := {tours, tours[[All, 1]], Style[tours[[-1, 2]], Yellow]}Dynamic[HighlightGraph[g, color[tour[[1 ;; Clock[{1, Length[tour], 1}, 40]]]]]]テキスト
Wolfram Research (2012), FindPostmanTour, Wolfram言語関数, https://reference.wolfram.com/language/ref/FindPostmanTour.html (2015年に更新).
CMS
Wolfram Language. 2012. "FindPostmanTour." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/FindPostmanTour.html.
APA
Wolfram Language. (2012). FindPostmanTour. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindPostmanTour.html
BibTeX
@misc{reference.wolfram_2026_findpostmantour, author="Wolfram Research", title="{FindPostmanTour}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FindPostmanTour.html}", note=[Accessed: 12-October-2026]}
BibLaTeX
@online{reference.wolfram_2026_findpostmantour, organization={Wolfram Research}, title={FindPostmanTour}, year={2015}, url={https://reference.wolfram.com/language/ref/FindPostmanTour.html}, note=[Accessed: 12-October-2026]}