Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张晓彤
integrated-scheduling-v3
Commits
42011c50
Commit
42011c50
authored
Jan 09, 2023
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决路网问题
parent
f68fb0eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
topo_graph.py
graph/topo_graph.py
+3
-1
No files found.
graph/topo_graph.py
View file @
42011c50
...
@@ -508,7 +508,9 @@ class Topo():
...
@@ -508,7 +508,9 @@ class Topo():
self
.
cross_bf_lanes
=
[]
self
.
cross_bf_lanes
=
[]
for
node_id
,
Type
in
self
.
load_G
.
nodes
.
data
(
'name'
):
for
node_id
,
Type
in
self
.
load_G
.
nodes
.
data
(
'name'
):
if
Type
==
'None'
:
if
Type
==
'None'
:
self
.
cross_bf_lanes
.
append
(
str
(
session_postgre
.
query
(
Lane
)
.
filter_by
(
EndNodeId
=
node_id
)
.
first
()
.
Id
))
lanes
=
session_postgre
.
query
(
Lane
)
.
filter_by
(
EndNodeId
=
node_id
)
.
first
()
if
lanes
is
not
None
:
self
.
cross_bf_lanes
.
append
(
str
(
lanes
.
Id
))
def
get_cross_nodes
(
self
):
def
get_cross_nodes
(
self
):
return
self
.
cross_nodes
return
self
.
cross_nodes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment