Example usage for com.google.common.graph ValueGraph allowsSelfLoops

List of usage examples for com.google.common.graph ValueGraph allowsSelfLoops

Introduction

In this page you can find the example usage for com.google.common.graph ValueGraph allowsSelfLoops.

Prototype

@Override
boolean allowsSelfLoops();

Source Link

Usage

From source file:no.ssb.vtl.script.operations.hierarchy.HierarchyOperation.java

@VisibleForTesting
HierarchyOperation(Dataset dataset, ValueGraph<VTLObject, Composition> graph, Component component) {
    this(dataset, dataset, component);
    checkNotNull(graph);/*from  w w  w  .  ja v  a2  s .  c  o  m*/
    checkArgument(graph.isDirected());
    checkArgument(!graph.allowsSelfLoops());
    this.graph = ImmutableValueGraph.copyOf(graph);
}