MCPcopy Create free account
hub / github.com/Linloir/GraphBuilder / reverseDirection

Method reverseDirection

graph_view.cpp:896–906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896void MyGraphicsLineItem::reverseDirection(){
897 delArrow();
898 startVex->removeStartLine(this);
899 endVex->removeEndLine(this);
900 MyGraphicsVexItem *temp = startVex;
901 startVex = endVex;
902 endVex = temp;
903 startVex->addStartLine(this);
904 endVex->addEndLine(this);
905 refrshLine();
906}
907
908void MyGraphicsLineItem::moveStart(MyGraphicsVexItem *start){
909 delArrow();

Callers 4

DFSMethod · 0.80
BFSMethod · 0.80
DijkstraMethod · 0.80
InitMethod · 0.80

Calls 4

removeStartLineMethod · 0.80
removeEndLineMethod · 0.80
addStartLineMethod · 0.80
addEndLineMethod · 0.80

Tested by

no test coverage detected