本文整理了Java中com.google.common.graph.Network.nodeOrder()
方法的一些代码示例,展示了Network.nodeOrder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.nodeOrder()
方法的具体详情如下:
包路径:com.google.common.graph.Network
类名称:Network
方法名:nodeOrder
[英]Returns the order of iteration for the elements of #nodes().
[中]返回#nodes()元素的迭代顺序。
代码示例来源:origin: google/guava
@Override
public ElementOrder<N> nodeOrder() {
return network.nodeOrder();
}
代码示例来源:origin: google/guava
@Override
public ElementOrder<N> nodeOrder() {
return delegate().nodeOrder();
}
代码示例来源:origin: google/j2objc
@Override
public ElementOrder<N> nodeOrder() {
return delegate().nodeOrder();
}
代码示例来源:origin: wildfly/wildfly
@Override
public ElementOrder<N> nodeOrder() {
return delegate().nodeOrder();
}
代码示例来源:origin: google/guava
static void assertStronglyEquivalent(Network<?, ?> networkA, Network<?, ?> networkB) {
// Properties not covered by equals()
assertThat(networkA.allowsParallelEdges()).isEqualTo(networkB.allowsParallelEdges());
assertThat(networkA.allowsSelfLoops()).isEqualTo(networkB.allowsSelfLoops());
assertThat(networkA.nodeOrder()).isEqualTo(networkB.nodeOrder());
assertThat(networkA.edgeOrder()).isEqualTo(networkB.edgeOrder());
assertThat(networkA).isEqualTo(networkB);
}
代码示例来源:origin: google/guava
/**
* Returns a {@link NetworkBuilder} initialized with all properties queryable from {@code
* network}.
*
* <p>The "queryable" properties are those that are exposed through the {@link Network} interface,
* such as {@link Network#isDirected()}. Other properties, such as {@link
* #expectedNodeCount(int)}, are not set in the new builder.
*/
public static <N, E> NetworkBuilder<N, E> from(Network<N, E> network) {
return new NetworkBuilder<N, E>(network.isDirected())
.allowsParallelEdges(network.allowsParallelEdges())
.allowsSelfLoops(network.allowsSelfLoops())
.nodeOrder(network.nodeOrder())
.edgeOrder(network.edgeOrder());
}
代码示例来源:origin: google/j2objc
/**
* Returns a {@link NetworkBuilder} initialized with all properties queryable from {@code
* network}.
*
* <p>The "queryable" properties are those that are exposed through the {@link Network} interface,
* such as {@link Network#isDirected()}. Other properties, such as {@link
* #expectedNodeCount(int)}, are not set in the new builder.
*/
public static <N, E> NetworkBuilder<N, E> from(Network<N, E> network) {
return new NetworkBuilder<N, E>(network.isDirected())
.allowsParallelEdges(network.allowsParallelEdges())
.allowsSelfLoops(network.allowsSelfLoops())
.nodeOrder(network.nodeOrder())
.edgeOrder(network.edgeOrder());
}
代码示例来源:origin: wildfly/wildfly
/**
* Returns a {@link NetworkBuilder} initialized with all properties queryable from {@code
* network}.
*
* <p>The "queryable" properties are those that are exposed through the {@link Network} interface,
* such as {@link Network#isDirected()}. Other properties, such as {@link
* #expectedNodeCount(int)}, are not set in the new builder.
*/
public static <N, E> NetworkBuilder<N, E> from(Network<N, E> network) {
return new NetworkBuilder<N, E>(network.isDirected())
.allowsParallelEdges(network.allowsParallelEdges())
.allowsSelfLoops(network.allowsSelfLoops())
.nodeOrder(network.nodeOrder())
.edgeOrder(network.edgeOrder());
}
代码示例来源:origin: google/guava
assertThat(network.nodes()).isEqualTo(asGraph.nodes());
assertThat(network.edges().size()).isAtLeast(asGraph.edges().size());
assertThat(network.nodeOrder()).isEqualTo(asGraph.nodeOrder());
assertThat(network.isDirected()).isEqualTo(asGraph.isDirected());
assertThat(network.allowsSelfLoops()).isEqualTo(asGraph.allowsSelfLoops());
代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger
@Override
public ElementOrder<N> nodeOrder() {
return delegate().nodeOrder();
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public ElementOrder<N> nodeOrder() {
return delegate().nodeOrder();
}
代码示例来源:origin: com.google.guava/guava-tests
@Override
public ElementOrder<N> nodeOrder() {
return network.nodeOrder();
}
代码示例来源:origin: com.google.guava/guava-tests
static void assertStronglyEquivalent(Network<?, ?> networkA, Network<?, ?> networkB) {
// Properties not covered by equals()
assertThat(networkA.allowsParallelEdges()).isEqualTo(networkB.allowsParallelEdges());
assertThat(networkA.allowsSelfLoops()).isEqualTo(networkB.allowsSelfLoops());
assertThat(networkA.nodeOrder()).isEqualTo(networkB.nodeOrder());
assertThat(networkA.edgeOrder()).isEqualTo(networkB.edgeOrder());
assertThat(networkA).isEqualTo(networkB);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Returns a {@link NetworkBuilder} initialized with all properties queryable from {@code
* network}.
*
* <p>The "queryable" properties are those that are exposed through the {@link Network} interface,
* such as {@link Network#isDirected()}. Other properties, such as {@link
* #expectedNodeCount(int)}, are not set in the new builder.
*/
public static <N, E> NetworkBuilder<N, E> from(Network<N, E> network) {
return new NetworkBuilder<N, E>(network.isDirected())
.allowsParallelEdges(network.allowsParallelEdges())
.allowsSelfLoops(network.allowsSelfLoops())
.nodeOrder(network.nodeOrder())
.edgeOrder(network.edgeOrder());
}
代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger
/**
* Returns a {@link NetworkBuilder} initialized with all properties queryable from {@code
* network}.
*
* <p>The "queryable" properties are those that are exposed through the {@link Network} interface,
* such as {@link Network#isDirected()}. Other properties, such as {@link
* #expectedNodeCount(int)}, are not set in the new builder.
*/
public static <N, E> NetworkBuilder<N, E> from(Network<N, E> network) {
return new NetworkBuilder<N, E>(network.isDirected())
.allowsParallelEdges(network.allowsParallelEdges())
.allowsSelfLoops(network.allowsSelfLoops())
.nodeOrder(network.nodeOrder())
.edgeOrder(network.edgeOrder());
}
代码示例来源:origin: com.google.guava/guava-tests
assertThat(network.nodes()).isEqualTo(asGraph.nodes());
assertThat(network.edges().size()).isAtLeast(asGraph.edges().size());
assertThat(network.nodeOrder()).isEqualTo(asGraph.nodeOrder());
assertThat(network.isDirected()).isEqualTo(asGraph.isDirected());
assertThat(network.allowsSelfLoops()).isEqualTo(asGraph.allowsSelfLoops());
内容来源于网络,如有侵权,请联系作者删除!