Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
B4M33PAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Filip Štěpánek
B4M33PAL
Commits
cbf827a7
Commit
cbf827a7
authored
3 years ago
by
Filip Štěpánek
Browse files
Options
Downloads
Patches
Plain Diff
Fixed vis
parent
d707b32e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
3SmugDete/datapub/test.in
+10
-14
10 additions, 14 deletions
3SmugDete/datapub/test.in
3SmugDete/datapub/vis.py
+1
-1
1 addition, 1 deletion
3SmugDete/datapub/vis.py
3SmugDete/main.cpp
+3
-1
3 additions, 1 deletion
3SmugDete/main.cpp
with
14 additions
and
16 deletions
3SmugDete/datapub/test.in
+
10
−
14
View file @
cbf827a7
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
1
3 8
26 21
1
1 16
15 16
1 2
9 8
\ No newline at end of file
This diff is collapsed.
Click to expand it.
3SmugDete/datapub/vis.py
+
1
−
1
View file @
cbf827a7
import
networkx
as
nx
import
matplotlib.pyplot
as
plt
file1
=
open
(
'
pub10
.in
'
,
'
r
'
)
file1
=
open
(
'
test
.in
'
,
'
r
'
)
headerline
=
file1
.
readline
()
print
(
headerline
)
...
...
This diff is collapsed.
Click to expand it.
3SmugDete/main.cpp
+
3
−
1
View file @
cbf827a7
...
...
@@ -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
(
other
Pack
.
nodes
[
i
]
,
otherPack
));
otherDegrees
.
push_back
(
CalculateDegree
(
other
Node
,
otherPack
));
}
std
::
sort
(
degrees
.
begin
(),
degrees
.
end
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment