Completed
Push — master ( 272056...bca99a )
by Siro Díaz
01:26
created
DataStructures/Sets/DisjointSet.php 1 patch
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * set is created.
34 34
      *
35 35
      * @param mixed $data the data to store.
36
-     * @return DataStructures\Trees\Nodes\DisjointNode the node created.
36
+     * @return DisjointNode the node created.
37 37
      */
38 38
     public function makeSet($data) : DisjointNode {
39 39
         $newSet = new DisjointNode($data);
@@ -46,8 +46,6 @@  discard block
 block discarded – undo
46 46
      * Returns the representative node (the root of $node in the tree) and
47 47
      * also applies path compression.
48 48
      *
49
-     * @param DataStructures\Trees\Nodes\DisjointNode $node the node from
50
-     *  where start to search the root.
51 49
      * @return DataStructures\Trees\Nodes\DisjointNode the parent node.
52 50
      */
53 51
     public function find($vertex) {
@@ -67,8 +65,6 @@  discard block
 block discarded – undo
67 65
      * one). If both have the same rank it doesn't matter what tree
68 66
      * is joined to the other tree but the rank will increase.
69 67
      *
70
-     * @param DataStructures\Trees\Nodes\DisjointNode $x The set.
71
-     * @param DataStructures\Trees\Nodes\DisjointNode $y The other set.
72 68
      */
73 69
     public function union($vertex1, $vertex2) {
74 70
         if($this->subsets[$vertex2]->parent < $this->subsets[$vertex1]->parent) {
Please login to merge, or discard this patch.