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
!18
adding new function
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
adding new function
Rcode
into
master
Overview
0
Commits
11
Pipelines
10
Changes
5
Merged
Marek Ostaszewski
requested to merge
Rcode
into
master
2 years ago
Overview
0
Commits
11
Pipelines
10
Changes
5
Expand
0
0
Merge request reports
Compare
master
version 9
927a737e
2 years ago
version 8
9f3eff4b
2 years ago
version 7
3527943f
2 years ago
version 6
8e8e7df2
2 years ago
version 5
2dac2bd2
2 years ago
version 4
e13c6d79
2 years ago
version 3
0e63e3fc
2 years ago
version 2
91183f96
2 years ago
version 1
ff4c435a
2 years ago
master (base)
and
latest version
latest version
209013ae
11 commits,
2 years ago
version 9
927a737e
10 commits,
2 years ago
version 8
9f3eff4b
9 commits,
2 years ago
version 7
3527943f
8 commits,
2 years ago
version 6
8e8e7df2
7 commits,
2 years ago
version 5
2dac2bd2
6 commits,
2 years ago
version 4
e13c6d79
5 commits,
2 years ago
version 3
0e63e3fc
4 commits,
2 years ago
version 2
91183f96
2 commits,
2 years ago
version 1
ff4c435a
1 commit,
2 years ago
5 files
+
64
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
R/create_bipartite_graph.R
0 → 100644
+
18
−
0
Options
# create_bipartite_graph.R
#' Function that creates a bipartite graph from the components of a given map/project on the MINERVA Platform.
#' The function produces an igraph object
#'
#' @param map_components (`list`) a list of map components
#'
#' @return (`igraph`) an igraph object with the bipartite representation of the map
#' @examples
#'
#' create_bipartite_graph(example_map_components)
#'
#' @export
create_bipartite_graph
<-
function
(
map_components
)
{
r_df
<-
purrr
::
map
(
map_components
$
map_reactions
,
create_bipartite_reaction_df
)
%>%
purrr
::
reduce
(
rbind
)
igraph
::
graph.data.frame
(
r_df
)
}
Loading