Skip to content

Commit 4e9eb13

Browse files
authored
Merge branch 'master' into kruskal
2 parents 509bd3c + 0304eec commit 4e9eb13

18 files changed

+182
-54
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ Thank you for taking the time to contribute to the project. The following set of
55

66
## Reporting Bugs / Proposing New Features
77

8-
If you discover a bug or want to propose a new feature or enhancement to the code or documentation, please check whether the problem has already been reported in the [Issues](https://github.com/ZigRazor/AHGPBM/issues).
8+
If you discover a bug or want to propose a new feature or enhancement to the code or documentation, please check whether the problem has already been reported in the [Issues](https://github.com/ZigRazor/CXXGraph/issues).
99

1010
If not, open a new issue and state the problem. Please provide a clear summary of the problem, what behavior you have expected and what behavior you have actually observed. If possible, create a *Minimal Reproducable Example* that demonstrates the problem.
1111

1212

1313
## Submitting Changes
1414

15-
We also highly welcome code contributions via pull requests. Note that your changes - after acceptance - will be offered under the **Apache 2.0** license. For more information, see the [LICENSE](https://github.com/ZigRazor/AHGPBM/blob/main/LICENSE).
15+
We also highly welcome code contributions via pull requests. Note that your changes - after acceptance - will be offered under the **Apache 2.0** license. For more information, see the [LICENSE](https://github.com/ZigRazor/CXXGraph/blob/master/LICENSE).
1616

1717
To create and submit your changes, follow the standard *Fork & Pull Request Workflow*:
1818

1919
1. Fork the project and switch to a new suitably named branch.
2020
2. Create one or more commits that reflect the changes you have made. Each commit should be self-contained, atomic and buildable. Therefore, split multiple features into different commits and include fixups in the related commit instead of creating a new one. If you add new functionality, please also add related tests.
21-
3. Test the changes on your local machine. For this, the provided scripts will help you to build the code and run the unit tests. See the [README](https://github.com/ZigRazor/AHGPBM/blob/main/README.md) for details.
21+
3. Test the changes on your local machine. For this, the provided scripts will help you to build the code and run the unit tests. See the [README](https://github.com/ZigRazor/CXXGraph/blob/master/README.md) for details.
2222
4. Push the branch to your fork.
2323
5. Open a new pull request and summarize the problem and your solution. If there is a related issue, please mention it too.
2424

include/Edge/DirectedEdge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __DIRECTEDEDGE_H__
21-
#define __DIRECTEDEDGE_H__
20+
#ifndef __CXXGRAPH_DIRECTEDEDGE_H__
21+
#define __CXXGRAPH_DIRECTEDEDGE_H__
2222

2323
#pragma once
2424

@@ -101,4 +101,4 @@ namespace CXXGRAPH
101101
}
102102
}
103103

104-
#endif // __DIRECTEDEDGE_H__
104+
#endif // __CXXGRAPH_DIRECTEDEDGE_H__

include/Edge/DirectedWeightedEdge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
/***********************************************************/
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
19-
#ifndef __DIRECTEDWEIGHTEDEDGE_H__
20-
#define __DIRECTEDWEIGHTEDEDGE_H__
19+
#ifndef __CXXGRAPH_DIRECTEDWEIGHTEDEDGE_H__
20+
#define __CXXGRAPH_DIRECTEDWEIGHTEDEDGE_H__
2121

2222
#pragma once
2323

@@ -106,4 +106,4 @@ namespace CXXGRAPH
106106

107107
}
108108

109-
#endif // __DIRECTEDWEIGHTEDEDGE_H__
109+
#endif // __CXXGRAPH_DIRECTEDWEIGHTEDEDGE_H__

include/Edge/Edge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __EDGE_H__
21-
#define __EDGE_H__
20+
#ifndef __CXXGRAPH_EDGE_H__
21+
#define __CXXGRAPH_EDGE_H__
2222

2323
#pragma once
2424

@@ -114,4 +114,4 @@ namespace CXXGRAPH
114114
}
115115
}
116116

117-
#endif // __EDGE_H__
117+
#endif // __CXXGRAPH_EDGE_H__

include/Edge/UndirectedEdge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __UNDIRECTEDEDGE_H__
21-
#define __UNDIRECTEDEDGE_H__
20+
#ifndef __CXXGRAPH_UNDIRECTEDEDGE_H__
21+
#define __CXXGRAPH_UNDIRECTEDEDGE_H__
2222

2323
#pragma once
2424

@@ -100,4 +100,4 @@ namespace CXXGRAPH
100100
}
101101

102102

103-
#endif // __UNDIRECTEDEDGE_H__
103+
#endif // __CXXGRAPH_UNDIRECTEDEDGE_H__

include/Edge/UndirectedWeightedEdge.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __UNDIRECTEDWEIGHTEDEDGE_H__
21-
#define __UNDIRECTEDWEIGHTEDEDGE_H__
20+
#ifndef __CXXGRAPH_UNDIRECTEDWEIGHTEDEDGE_H__
21+
#define __CXXGRAPH_UNDIRECTEDWEIGHTEDEDGE_H__
2222

2323
#pragma once
2424

@@ -107,4 +107,4 @@ namespace CXXGRAPH
107107

108108
}
109109

110-
#endif // __UNDIRECTEDWEIGHTEDEDGE_H__
110+
#endif // __CXXGRAPH_UNDIRECTEDWEIGHTEDEDGE_H__

include/Edge/Weighted.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __WEIGHTED_H__
21-
#define __WEIGHTED_H__
20+
#ifndef __CXXGRAPH_WEIGHTED_H__
21+
#define __CXXGRAPH_WEIGHTED_H__
2222

2323
#pragma once
2424

@@ -64,4 +64,4 @@ namespace CXXGRAPH
6464
}
6565

6666

67-
#endif // __WEIGHTED_H__
67+
#endif // __CXXGRAPH_WEIGHTED_H__

include/Graph/Graph.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __GRAPH_H__
21-
#define __GRAPH_H__
20+
#ifndef __CXXGRAPH_GRAPH_H__
21+
#define __CXXGRAPH_GRAPH_H__
2222

2323
#pragma once
2424

@@ -931,12 +931,12 @@ namespace CXXGRAPH
931931
{
932932
(*subsets)[nodeId].parent = Graph<T>::setFind(subsets, (*subsets)[nodeId].parent);
933933
}
934-
934+
935935
return (*subsets)[nodeId].parent;
936936
}
937937

938938
template <typename T>
939-
void Graph<T>::setUnion(std::vector<Subset> *subsets, const unsigned long elem1, const unsigned long elem2) const
939+
void Graph<T>::setUnion(std::vector<Subset>* subsets, const unsigned long elem1, const unsigned long elem2) const
940940
{
941941
// return;
942942
// if both sets have same parent
@@ -954,7 +954,7 @@ namespace CXXGRAPH
954954
(*subsets)[elem2].parent = elem1Parent;
955955
(*subsets)[elem1Parent].rank++;
956956
}
957-
}
957+
}
958958

959959
template <typename T>
960960
const AdjacencyMatrix<T> Graph<T>::getAdjMatrix() const
@@ -2251,4 +2251,4 @@ namespace CXXGRAPH
22512251
}
22522252

22532253
} // namespace CXXGRAPH
2254-
#endif // __GRAPH_H__
2254+
#endif // __CXXGRAPH_GRAPH_H__

include/Graph/Graph_TS.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/*** License: AGPL v3.0 ***/
1818
/***********************************************************/
1919

20-
#ifndef __GRAPH_TS_H__
21-
#define __GRAPH_TS_H__
20+
#ifndef __CXXGRAPH_GRAPH_TS_H__
21+
#define __CXXGRAPH_GRAPH_TS_H__
2222

2323
#pragma once
2424

@@ -429,4 +429,4 @@ namespace CXXGRAPH
429429
return partitions;
430430
}
431431
}
432-
#endif // __GRAPH_TS_H__
432+
#endif // __CXXGRAPH_GRAPH_TS_H__

include/Node/Node.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
/***********************************************************/
1919

2020

21-
#ifndef __NODE_H__
22-
#define __NODE_H__
21+
#ifndef __CXXGRAPH_NODE_H__
22+
#define __CXXGRAPH_NODE_H__
2323

2424
#pragma once
2525
#include <iostream>
@@ -90,4 +90,4 @@ namespace CXXGRAPH
9090
}
9191
}
9292

93-
#endif // __NODE_H__
93+
#endif // __CXXGRAPH_NODE_H__

0 commit comments

Comments
 (0)