Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minervaR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
minervaR
Merge requests
!26
updated conversion to bipartite, it was very very wrong before
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
updated conversion to bipartite, it was very very wrong before
Rcode
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Marek Ostaszewski
requested to merge
Rcode
into
master
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
81aeffe8
1 commit,
2 years ago
2 files
+
34
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
R/create_bipartite_graph.R
+
1
−
1
Options
@@ -24,7 +24,7 @@ create_bipartite_graph <- function(map_components) {
### Create a bipartite graph for each diagram - edges and vertices,
## then create an igraph object for each of them
map_g_l
<-
purrr
::
map2
(
map_components
$
map_reactions
,
map_components
$
map_elements
,
create_bipartite_diagram
_df
)
%>%
map_g_l
<-
purrr
::
map2
(
map_components
$
map_reactions
,
map_components
$
map_elements
,
create_bipartite_diagram
)
%>%
purrr
::
map
(
~
igraph
::
graph.data.frame
(
.
$
interactions
,
directed
=
TRUE
,
vertices
=
.
$
elements
))
names
(
map_g_l
)
<-
map_components
$
models
$
idObject
return
(
map_g_l
)
Loading