graph-builder
Version:
A graph builder library for modeling abstract graph structures.
22 lines (21 loc) • 972 B
TypeScript
/** A utility class to hold various constants used by the Guava Graph library. */
export declare namespace GraphConstants {
const EXPECTED_DEGREE = 2;
const DEFAULT_NODE_COUNT = 10;
const DEFAULT_EDGE_COUNT: number;
const INNER_LOAD_FACTOR = 1;
const INNER_CAPACITY = 2;
const NODE_NOT_IN_GRAPH = "Node %s is not an element of this graph.";
const EDGE_NOT_IN_GRAPH = "Edge %s is not an element of this graph.";
const REUSING_EDGE: string;
const MULTIPLE_EDGES_CONNECTING: string;
const PARALLEL_EDGES_NOT_ALLOWED: string;
const SELF_LOOPS_NOT_ALLOWED: string;
const NOT_AVAILABLE_ON_UNDIRECTED: string;
const EDGE_ALREADY_EXISTS = "Edge %s already exists in the graph.";
const ENDPOINTS_MISMATCH = "Mismatch: unordered endpoints cannot be used with directed graphs";
/** Singleton edge value for {@link Graph} implementations backed by {@link ValueGraph}s. */
enum Presence {
EDGE_EXISTS = 0
}
}