我想使用 VoltageScorer 评估 Jung 中图形顶点的电压分数。( http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/algorithms/scoring/VoltageScorer.html )
我遇到的问题是这样做我必须提供“源”和“汇”顶点,但不知道我应该将哪些顶点用作“源”以及哪些作为“汇”。
文档中的构造函数摘要之一是:
VoltageScorer(Hypergraph<V,E> g, Collection<V> sources, Collection<V> sinks)
Creates an instance with the specified graph, source vertices
(each of whose 'voltages' are tied to 1), and sinks.
有人可以解释如何确定哪些顶点应该用作“源”,哪些顶点应该用作“汇”?
感谢您的时间。