Skip to content
Snippets Groups Projects
Commit cbf827a7 authored by Filip Štěpánek's avatar Filip Štěpánek
Browse files

Fixed vis

parent d707b32e
No related branches found
No related tags found
No related merge requests found
30 22 5
21 14
13 20
20 19
30 18 6 9
16 17
11 10
9 2
15 22
7 8
1 0
22 16
11 17
2 7
21 20
1 7
20 26
21 27
14 13
14 20
7 13
19 13
16 10
10 17
3 9
2 8
3 2
13 8
26 21
11 16
15 16
1 2
9 8
\ No newline at end of file
import networkx as nx
import matplotlib.pyplot as plt
file1 = open('pub10.in', 'r')
file1 = open('test.in', 'r')
headerline = file1.readline()
print(headerline)
......
......@@ -79,6 +79,8 @@ int main() {
}
bool IsIsomorphic(Pack pack, Pack otherPack) {
if (pack.id == 0 && otherPack.id == 92)
std::cout << "FOO";
if (pack.id >= otherPack.id)
return false;
......@@ -96,7 +98,7 @@ bool IsIsomorphic(Pack pack, Pack otherPack) {
int otherNode = otherPack.nodes[i];
degrees.push_back(CalculateDegree(node, pack));
otherDegrees.push_back(CalculateDegree(otherPack.nodes[i], otherPack));
otherDegrees.push_back(CalculateDegree(otherNode, otherPack));
}
std::sort(degrees.begin(), degrees.end());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment