Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Detection eddies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
67f46d32
Commit
67f46d32
authored
2 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Print graph properties after removing vertices
parent
68fbb071
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
segments.py
+5
-5
5 additions, 5 deletions
segments.py
with
5 additions
and
5 deletions
segments.py
+
5
−
5
View file @
67f46d32
...
...
@@ -79,17 +79,17 @@ for v in g.vertices():
t1
=
time
.
perf_counter
()
print
(
f
'
Done collapsing in
{
t1
-
t0
:
.
0
f
}
s
'
)
t0
=
t1
print
(
"
New graph:
"
)
print
(
"
Number of vertices:
"
,
g
.
num_vertices
())
print
(
"
Number of edges:
"
,
g
.
num_edges
())
print
(
"
Internal properties:
"
)
g
.
list_properties
()
print
(
'
Empty nodes:
'
,
len
(
verts_to_del
))
print
(
'
Deleting empty nodes...
'
)
g
.
remove_vertex
(
verts_to_del
,
fast
=
True
)
t1
=
time
.
perf_counter
()
print
(
f
"
Done deleting in
{
t1
-
t0
:
.
0
f
}
s
"
)
t0
=
t1
print
(
"
Graph of segments:
"
)
print
(
"
Number of vertices:
"
,
g
.
num_vertices
())
print
(
"
Number of edges:
"
,
g
.
num_edges
())
print
(
"
Internal properties:
"
)
g
.
list_properties
()
print
(
'
Saving graph...
'
)
g
.
save
(
sys
.
argv
[
2
])
t1
=
time
.
perf_counter
()
...
...
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