nearest
半径内の最近傍
説明
は、1 つ以上の名前と値のペアの引数で指定された追加のオプションを使用します。たとえば、nodeIDs
= nearest(G
,s
,d
,Name,Value
)G
が重み付きグラフの場合、nearest(G,s,d,'Method','unweighted')
はグラフ G
のエッジの重みを無視し、すべてのエッジの重みを 1
として扱います。
例
入力引数
名前と値の引数
出力引数
拡張機能
バージョン履歴
R2016a で導入
参考
shortestpath
| distances
| shortestpathtree
| neighbors
| successors
| predecessors