Skip to content

Commit 4504f8c

Browse files
committed
Replace layout attributes (Layoutable) with general purpose Attributes
1 parent 3403c9a commit 4504f8c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/MaximumMatching/Flow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public function getEdges()
3030
// create temporary flow graph with supersource and supersink
3131
$graphFlow = $this->graph->createGraphCloneEdgeless();
3232

33-
$superSource = $graphFlow->createVertex()->setLayoutAttribute('label', 's*');
34-
$superSink = $graphFlow->createVertex()->setLayoutAttribute('label', 't*');
33+
$superSource = $graphFlow->createVertex();
34+
$superSink = $graphFlow->createVertex();
3535

3636
$groups = $alg->getGroups();
3737
$groupA = $groups[0];

src/MinimumCostFlow/CycleCanceling.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public function createGraph()
1919
// create resulting graph with supersource and supersink
2020
$resultGraph = $this->graph->createGraphClone();
2121

22-
$superSource = $resultGraph->createVertex()->setLayoutAttribute('label', 's*');
23-
$superSink = $resultGraph->createVertex()->setLayoutAttribute('label', 't*');
22+
$superSource = $resultGraph->createVertex();
23+
$superSink = $resultGraph->createVertex();
2424

2525
$sumBalance = 0;
2626

0 commit comments

Comments
 (0)