Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CiS Projekt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ockenden, Samuel
CiS Projekt
Merge requests
!12
bug fixes and updates to code
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
bug fixes and updates to code
bav1758/ci-s-projekt-verarbeitung:main
into
main
Overview
0
Commits
29
Pipelines
0
Changes
11
Merged
Schokolowski, Malte
requested to merge
bav1758/ci-s-projekt-verarbeitung:main
into
main
3 years ago
Overview
0
Commits
29
Pipelines
0
Changes
11
Expand
0
0
Merge request reports
Viewing commit
b1d80ea8
Prev
Next
Show latest version
11 files
+
86
−
34
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
b1d80ea8
changeed names and added tests
· b1d80ea8
Malte Schokolowski
authored
3 years ago
verarbeitung/construct_new_graph/add_citations_rec.py
+
16
−
0
Options
@@ -22,6 +22,22 @@ sys.path.append("../")
from
input.publication
import
Publication
from
verarbeitung.get_pub_from_input
import
get_pub
def
create_graph_structure_citations_test
(
pub
,
search_depth
,
search_depth_max
,
cit_type
,
test_var
,
test_nodes
,
test_edges
):
'''
:param test_nodes: list of publications from unit test
:type test_nodes: List[Publication]
:param test_edges: list of links from unit test
:type test_edges: List[List[String,String]]
for unit test purposes only
'''
global
nodes
,
edges
nodes
=
test_nodes
edges
=
test_edges
return
(
nodes
,
edges
,
create_graph_structure_citations
(
pub
,
search_depth
,
search_depth_max
,
cit_type
,
test_var
))
def
get_cit_type_list
(
pub
,
cit_type
):
'''
:param pub: Publication which citations will be added
Loading