Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kieker-TeeTime-Stages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
TeeTime
Kieker-TeeTime-Stages
Commits
328707b7
Commit
328707b7
authored
9 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
work on nested graph library
parent
74630717
No related branches found
No related tags found
1 merge request
!17
Get impletemented stages and Java 8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/kieker/analysis/graph/GraphTester.java
+21
-2
21 additions, 2 deletions
src/main/java/kieker/analysis/graph/GraphTester.java
src/main/java/kieker/analysis/graph/impl/GraphImpl.java
+2
-0
2 additions, 0 deletions
src/main/java/kieker/analysis/graph/impl/GraphImpl.java
with
23 additions
and
2 deletions
src/main/java/kieker/analysis/graph/GraphTester.java
+
21
−
2
View file @
328707b7
...
@@ -12,9 +12,28 @@ public class GraphTester {
...
@@ -12,9 +12,28 @@ public class GraphTester {
Vertex
node2
=
graph
.
addVertex
(
"n2"
);
Vertex
node2
=
graph
.
addVertex
(
"n2"
);
Graph
subgraph
=
node1
.
addChildGraph
(
);
Vertex
node3
=
graph
.
addVertex
(
"n3"
);
Vertex
node11
=
subgraph
.
addVertex
(
"n1::n1"
);
Vertex
node4
=
graph
.
addVertex
(
"n4"
);
Edge
edge12
=
node1
.
addEdge
(
node2
);
Edge
edge11
=
node1
.
addEdge
(
node1
);
Edge
edge23
=
node2
.
addEdge
(
"e23"
,
node3
);
graph
.
addEdge
(
"e13"
,
node1
,
node3
);
Vertex
node1snd
=
graph
.
getVertex
(
"n1"
);
assert
node1
==
node1snd
;
for
(
Vertex
vertex
:
graph
.
getVertices
())
{
System
.
out
.
println
(
vertex
.
getId
());
}
for
(
Edge
edge
:
graph
.
getEdges
())
{
System
.
out
.
println
(
edge
.
getId
());
}
// node2.addEdgeTo(node11);
// node2.addEdgeTo(node11);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/kieker/analysis/graph/impl/GraphImpl.java
+
2
−
0
View file @
328707b7
...
@@ -78,6 +78,8 @@ public class GraphImpl implements Graph {
...
@@ -78,6 +78,8 @@ public class GraphImpl implements Graph {
}
}
}
}
// TODO Maybe: Check whether both vertices are in the same graph
final
Edge
edge
=
new
EdgeImpl
(
idString
,
outVertex
,
inVertex
,
this
);
final
Edge
edge
=
new
EdgeImpl
(
idString
,
outVertex
,
inVertex
,
this
);
this
.
edges
.
put
(
edge
.
getId
().
toString
(),
edge
);
this
.
edges
.
put
(
edge
.
getId
().
toString
(),
edge
);
((
VertexImpl
)
outVertex
).
addOutEdge
(
edge
);
((
VertexImpl
)
outVertex
).
addOutEdge
(
edge
);
...
...
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