LeftIndexedBipartiteGraphSegment implements
  LeftIndexedBipartiteGraph,
  DynamicBipartiteGraph,
  ReusableLeftIndexedBipartiteGraphSegment,
  OptimizableBipartiteGraphSegment { public abstract ReusableInternalIdToLongIterator initializeRightInternalIdToLongIterator(); LeftIndexedBipartiteGraphSegment(
      int expectedNumLeftNodes,
      int expectedNumRightNodes,
      int maxNumberOfEdges,
      LeftIndexedReaderAccessibleInfoProvider leftIndexedReaderAccessibleInfoProvider,
      EdgeTypeMask edgeTypeMask,
      StatsReceiver statsReceiver); abstract ReusableNodeIntIterator initializeLeftNodeEdgesIntIterator(); abstract ReusableNodeRandomIntIterator initializeLeftNodeEdgesRandomIntIterator(); abstract ReusableInternalIdToLongIterator initializeLeftInternalIdToLongIterator(); abstract ReusableInternalIdToLongIterator initializeRightInternalIdToLongIterator(); int getCurrentNumEdges(); int getMaxNumEdges(); @Override void addEdge(long leftNode, long rightNode, byte edgeType); @Override void removeEdge(long leftNode, long rightNode); @Override int getLeftNodeDegree(long leftNode); @Override EdgeIterator getLeftNodeEdges(long leftNode); @Override EdgeIterator getLeftNodeEdges(
      long leftNode,
      ReusableNodeIntIterator leftNodeEdgeIterator,
      ReusableInternalIdToLongIterator leftInternalIdToLongIterator); @Override EdgeIterator getRandomLeftNodeEdges(long leftNode, int numSamples, Random random); @Override EdgeIterator getRandomLeftNodeEdges(
      long leftNode,
      int numSamples,
      Random random,
      ReusableNodeRandomIntIterator leftNodeEdgeRandomIterator,
      ReusableInternalIdToLongIterator leftInternalIdToLongIterator); LeftIndexedReaderAccessibleInfoProvider getLeftIndexedReaderAccessibleInfoProvider(); double getLeftNodeEdgePoolFillPercentage(); LongToInternalIntBiMap getRightNodesToIndexBiMap(); LongToInternalIntBiMap getLeftNodesToIndexBiMap();  }
@Test public void testInitializeRightInternalIdToLongIterator() { MockEdgeTypeMask mockEdgeTypeMask = new MockEdgeTypeMask((byte) (-64)); NullStatsReceiver statsReceiver = new NullStatsReceiver(); LeftIndexedPowerLawBipartiteGraphSegment leftIndexedPowerLawBipartiteGraphSegment = new LeftIndexedPowerLawBipartiteGraphSegment(163, 4455, 163, 1052, 163, mockEdgeTypeMask, statsReceiver); leftIndexedPowerLawBipartiteGraphSegment.initializeRightInternalIdToLongIterator(); assertEquals(163, leftIndexedPowerLawBipartiteGraphSegment.getMaxNumEdges()); assertEquals(0, leftIndexedPowerLawBipartiteGraphSegment.getCurrentNumEdges()); }