-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Heuser
committed
May 16, 2019
1 parent
bf2f5d1
commit 815f178
Showing
10 changed files
with
68 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Outerplanarity Detection | ||
=== | ||
This algorithm detects whether a biconnected input graph is *biconnected outerplanar* or not. | ||
- The algorithm **requires a biconnected input graph**: to create one, run the [BCC output](./bcc-iterator.md) on an arbitrary graph and feed the resulting BCCs to this algorithm one by one. | ||
|
||
This space-efficient outerplanar detection | ||
- uses a virtual graph consisting of a bit vector and a [ragged dictionary](./ragged-dictionary.md) | ||
- uses a compact array with [rank-select](./rank-select.md) for path counters | ||
|
||
## Efficiency | ||
- Time: O(n log(log(n))) | ||
- Space: O(n) bits | ||
|
||
## Example | ||
```cpp | ||
#include "sealib/iterator/outerplanarchecker.h" | ||
#include "sealib/graph/graphcreator.h" | ||
|
||
int main() { | ||
Sealib::UndirectedGraph g = Sealib::GraphCreator::cycle(5000, 8); | ||
|
||
Sealib::OuterplanarChecker c(g); | ||
if(c.isOuterplanar()) { | ||
// do something with the outerplanar graph | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters