Skip to content

Commit

Permalink
Merge fffb6c8 into b1b09b5
Browse files Browse the repository at this point in the history
  • Loading branch information
Sedictious committed Jul 29, 2019
2 parents b1b09b5 + fffb6c8 commit ba76e84
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/plugins/graphs/star/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ bool StarGraph::reset()
// which will always start from 0 and end at size-1
node(0).setCoords(radius, radius);
if (m_edgeAttrsGen) {
auto soa = m_edgeAttrsGen->create(nNodes - 1);
for (int nodeId = 1; nodeId < nNodes; ++nodeId) {
auto setOfAttrs = m_edgeAttrsGen->create(nNodes - 1);
int nodeId = 1;
for (auto& attrs : setOfAttrs) {
fixCoords(node(nodeId), radius, dTheta);
addEdge(0, nodeId, new Attributes(soa.at(nodeId)));
addEdge(0, nodeId, new Attributes(attrs));
++nodeId;
}
} else {
for (int nodeId = 1; nodeId < nNodes; ++nodeId) {
Expand Down

0 comments on commit ba76e84

Please sign in to comment.