assertWeights example

8, 9],
    ];
    $this->assertComponents($graph$expected_components);

    $expected_weights = [
      [1, 2, 3],
      [2, 4, 3],
      [7, 4, 3],
      [7, 5],
      [8, 9],
    ];
    $this->assertWeights($graph$expected_weights);
  }

  /** * Normalizes a graph. * * @param $graph * A graph array processed by \Drupal\Component\Graph\Graph::searchAndSort() * * @return array * The normalized version of a graph. */
  
Home | Imprint | This part of the site doesn't use cookies.