Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Model registry
Operate
Environments
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
Eclipse Projects
aidge
aidge_core
Commits
f3b83a6e
Commit
f3b83a6e
authored
5 months ago
by
Octave Perrin
Browse files
Options
Downloads
Patches
Plain Diff
start working userguide of graphview
parent
c2477042
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
include/aidge/graph/GraphView.hpp
+21
-6
21 additions, 6 deletions
include/aidge/graph/GraphView.hpp
with
21 additions
and
6 deletions
include/aidge/graph/GraphView.hpp
+
21
−
6
View file @
f3b83a6e
...
...
@@ -38,6 +38,13 @@ enum class DataType;
/**
* @brief Groupement of Nodes forming a computational graph on which properties and functions
* can easily and safely be applied or run.
* A GraphView countains:
* - mName: The name of the GraphView
* - mRootNode: The root of the GraphView, an arbitrary Node of the GraphView
* - mNodes: The set of Nodes included in the GraphView
* - mNodeRegistry: Set of nodes included in the graphview with names
* - mInputNodes: GraphView inputs IOIndex_t designates the input number
* - mOutputNodes: GraphView outputs IOIndex_t designates the input number
*/
class
GraphView
:
public
std
::
enable_shared_from_this
<
GraphView
>
{
private:
...
...
@@ -56,16 +63,22 @@ private:
/// @brief GraphView inputs IOIndex_t designates the input number
std
::
vector
<
std
::
pair
<
NodePtr
,
IOIndex_t
>>
mInputNodes
;
/// @brief GraphView outputs IOIndex_t designates the
in
put number
/// @brief GraphView outputs IOIndex_t designates the
out
put number
std
::
vector
<
std
::
pair
<
NodePtr
,
IOIndex_t
>>
mOutputNodes
;
public:
/**
* @todo
*/
GraphView
(
const
std
::
string
&
name
=
""
)
:
mName
(
name
)
{
// ctor
}
/**
* @todo
*/
bool
operator
==
(
const
GraphView
&
gv
)
const
{
return
mNodes
==
gv
.
mNodes
;
...
...
@@ -84,15 +97,15 @@ public:
///////////////////////////////////////////////////////
public
:
/**
* @brief Name of the
node
.
* @brief Name of the
GraphView
.
* @return std::string
*/
inline
std
::
string
name
()
const
noexcept
{
return
mName
;
}
/**
* @brief Set the
node
name.
* @warning Undefined behaviour when several
Node
s have the same name.
* @param name New name for the
node
.
* @brief Set the
GraphView
name.
* @warning Undefined behaviour when several
GraphView
s have the same name.
@todo to check if true
* @param name New name for the
GraphView
.
*/
inline
void
setName
(
const
std
::
string
&
name
)
{
mName
=
name
;
}
...
...
@@ -105,7 +118,9 @@ public:
/**
* @brief Save the GraphView as a Mermaid graph in a .md file at the
* specified location.
* @param path
* @param path: Path where the file should be put
* @param verbose @todo i have no idea what it's doing
* @param showProducers if true, shows additional informations
*/
void
save
(
const
std
::
string
&
path
,
bool
verbose
=
false
,
bool
showProducers
=
true
)
const
;
...
...
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