test_class.declarator: basis
test_class.original_string: CycleBasis  basis;
test_class.type: CycleBasis
test_class.var_name: basis
test_class.declarator: g
test_class.original_string: SimpleGraph g;
test_class.type: SimpleGraph
test_class.var_name: g
test_class.file: legacy/src/test/java/org/openscience/cdk/ringsearch/cyclebasis/CycleBasisTest.java
test_class.identifier: CycleBasisTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testWeightVector() {
          Assert.assertArrayEquals(basis.weightVector(), new int[]{3, 3, 3, 3});
      }
test_case.class_method_signature: CycleBasisTest.testWeightVector()
test_case.full_signature: @Test public void testWeightVector()
test_case.identifier: testWeightVector
test_case.invocations: assertArrayEquals weightVector
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWeightVector()
focal_class.declarator: mulitEdgeCycles = new ArrayList<SimpleCycle>()
focal_class.modifier: private
focal_class.original_string: private List<SimpleCycle>      mulitEdgeCycles = new ArrayList<SimpleCycle>();
focal_class.type: List<SimpleCycle>
focal_class.var_name: mulitEdgeCycles
focal_class.declarator: multiEdgeList   = new ArrayList<Edge>()
focal_class.modifier: private
focal_class.original_string: private List<Edge>             multiEdgeList   = new ArrayList<Edge>();
focal_class.type: List<Edge>
focal_class.var_name: multiEdgeList
focal_class.declarator: cachedCycleBasis
focal_class.modifier: private
focal_class.original_string: private SimpleCycleBasis       cachedCycleBasis;
focal_class.type: SimpleCycleBasis
focal_class.var_name: cachedCycleBasis
focal_class.declarator: baseGraph
focal_class.modifier: private
focal_class.original_string: private UndirectedGraph        baseGraph;
focal_class.type: UndirectedGraph
focal_class.var_name: baseGraph
focal_class.declarator: subgraphBases   = new ArrayList<SimpleCycleBasis>()
focal_class.modifier: private
focal_class.original_string: private List<SimpleCycleBasis> subgraphBases   = new ArrayList<SimpleCycleBasis>();
focal_class.type: List<SimpleCycleBasis>
focal_class.var_name: subgraphBases
focal_class.file: legacy/src/main/java/org/openscience/cdk/ringsearch/cyclebasis/CycleBasis.java
focal_class.identifier: CycleBasis
focal_class.class_method_signature: CycleBasis.CycleBasis(UndirectedGraph g)
focal_class.full_signature: public  CycleBasis(UndirectedGraph g)
focal_class.identifier: CycleBasis
focal_class.modifiers: public
focal_class.parameters: (UndirectedGraph g)
focal_class.signature:  CycleBasis(UndirectedGraph g)
focal_class.class_method_signature: CycleBasis.weightVector()
focal_class.full_signature: public int[] weightVector()
focal_class.identifier: weightVector
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] weightVector()
focal_class.class_method_signature: CycleBasis.simpleBasis()
focal_class.full_signature: private SimpleCycleBasis simpleBasis()
focal_class.identifier: simpleBasis
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: SimpleCycleBasis
focal_class.signature: SimpleCycleBasis simpleBasis()
focal_class.class_method_signature: CycleBasis.cycles()
focal_class.full_signature: public Collection cycles()
focal_class.identifier: cycles
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection
focal_class.signature: Collection cycles()
focal_class.class_method_signature: CycleBasis.essentialCycles()
focal_class.full_signature: public Collection essentialCycles()
focal_class.identifier: essentialCycles
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection
focal_class.signature: Collection essentialCycles()
focal_class.class_method_signature: CycleBasis.relevantCycles()
focal_class.full_signature: public Map relevantCycles()
focal_class.identifier: relevantCycles
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map
focal_class.signature: Map relevantCycles()
focal_class.class_method_signature: CycleBasis.equivalenceClasses()
focal_class.full_signature: public List equivalenceClasses()
focal_class.identifier: equivalenceClasses
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List
focal_class.signature: List equivalenceClasses()
focal_method.body: public int[] weightVector() {
          SimpleCycleBasis basis = simpleBasis();
          List cycles = basis.cycles();
  
          int[] result = new int[cycles.size()];
          for (int i = 0; i < cycles.size(); i++) {
              SimpleCycle cycle = (SimpleCycle) cycles.get(i);
              result[i] = (int) cycle.weight();
          }
          Arrays.sort(result);
  
          return result;
      }
focal_method.class_method_signature: CycleBasis.weightVector()
focal_method.full_signature: public int[] weightVector()
focal_method.identifier: weightVector
focal_method.invocations: simpleBasis cycles size size get weight sort
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: int[]
focal_method.signature: int[] weightVector()