/** * Write new edge between nodes fromNodeId, and toNodeId both to nodes index and edges index */ final int internalEdgeAdd(int newEdgeId, int fromNodeId, int toNodeId) { writeEdge(newEdgeId, fromNodeId, toNodeId, EdgeIterator.NO_EDGE, EdgeIterator.NO_EDGE); connectNewEdge(fromNodeId, toNodeId, newEdgeId); if (fromNodeId != toNodeId) connectNewEdge(toNodeId, fromNodeId, newEdgeId); return newEdgeId; }
/** * Write new edge between nodes fromNodeId, and toNodeId both to nodes index and edges index */ final int internalEdgeAdd(int newEdgeId, int fromNodeId, int toNodeId) { writeEdge(newEdgeId, fromNodeId, toNodeId, EdgeIterator.NO_EDGE, EdgeIterator.NO_EDGE); connectNewEdge(fromNodeId, newEdgeId); if (fromNodeId != toNodeId) connectNewEdge(toNodeId, newEdgeId); return newEdgeId; }
/** * Write new edge between nodes fromNodeId, and toNodeId both to nodes index and edges index */ final int internalEdgeAdd(int newEdgeId, int fromNodeId, int toNodeId) { writeEdge(newEdgeId, fromNodeId, toNodeId, EdgeIterator.NO_EDGE, EdgeIterator.NO_EDGE); connectNewEdge(fromNodeId, toNodeId, newEdgeId); if (fromNodeId != toNodeId) connectNewEdge(toNodeId, fromNodeId, newEdgeId); return newEdgeId; }
/** * Write new edge between nodes fromNodeId, and toNodeId both to nodes index and edges index */ final int internalEdgeAdd( int newEdgeId, int fromNodeId, int toNodeId ) { writeEdge(newEdgeId, fromNodeId, toNodeId, EdgeIterator.NO_EDGE, EdgeIterator.NO_EDGE); connectNewEdge(fromNodeId, newEdgeId); if (fromNodeId != toNodeId) connectNewEdge(toNodeId, newEdgeId); return newEdgeId; }