graphp / graph

GraPHP is the mathematical graph/network library written in PHP.
MIT License
694 stars 74 forks source link

Replace `ORDER_RANDOM` with `getVerticesShuffled()`, `getVertexRandom()`, `getEdgesShuffled()` and `getEdgeRandom()` #179

Closed clue closed 5 years ago

clue commented 5 years ago
// old
$vertices->getVerticesOrder(Vertices::ORDER_RANDOM);
$vertices->getVertexOrder(Vertices::ORDER_RANDOM);
$edges->getEdgesOrder(Edges::ORDER_RANDOM);
$edges->getEdgeOrder(Edges::ORDER_RANDOM);

// new
$vertices->getVerticesShuffled();
$vertices->getVertexRandom();
$edges->getEdgesShuffled();
$edges->getEdgeRandom();