We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c04cd4 commit e34939bCopy full SHA for e34939b
tests/Property/PropertyGraphTest.php
@@ -0,0 +1,27 @@
1
+<?php
2
+
3
+use Fhaculty\Graph\Graph;
4
+use Fhaculty\Graph\Algorithm\Property\GraphProperty;
5
6
+class PropertyGraphTest extends TestCase
7
+{
8
+ public function testEmptyIsEdgeless()
9
+ {
10
+ $graph = new Graph($graph);
11
12
+ $alg = new GraphProperty($graph);
13
14
+ $this->assertTrue($alg->isEdgeless());
15
+ $this->assertFalse($alg->isTrivial());
16
+ }
17
18
+ public function testSingleVertexIsTrivial()
19
20
+ $graph = new Graph();
21
+ $graph->createVertex(1);
22
23
24
25
+ $this->assertTrue($alg->isTrivial());
26
27
+}
0 commit comments