-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
498 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include "kagen/context.h" | ||
#include "kagen/edgeweight_generators/edge_weight_generator.h" | ||
#include "kagen/kagen.h" | ||
|
||
namespace kagen { | ||
class DefaultEdgeWeightGenerator : public EdgeWeightGenerator { | ||
public: | ||
DefaultEdgeWeightGenerator(EdgeWeightConfig) {} | ||
|
||
void GenerateEdgeWeights(const Edgelist&, EdgeWeights&) final {} | ||
|
||
void GenerateEdgeWeights(const XadjArray&, const AdjncyArray&, EdgeWeights&) final {} | ||
}; | ||
} // namespace kagen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
#pragma once | ||
|
||
#include "kagen/context.h" | ||
#include "kagen/kagen.h" | ||
|
||
namespace kagen { | ||
class EdgeWeightGenerator { | ||
public: | ||
virtual ~EdgeWeightGenerator() = default; | ||
|
||
virtual EdgeWeights GenerateEdgeWeights(const Edgelist& edgelist) = 0; | ||
virtual void GenerateEdgeWeights(const Edgelist& edgelist, EdgeWeights& weights) = 0; | ||
|
||
virtual EdgeWeights | ||
GenerateEdgeWeights(const XadjArray& xadj, const AdjncyArray& adjncy) = 0; | ||
virtual void GenerateEdgeWeights(const XadjArray& xadj, const AdjncyArray& adjncy, EdgeWeights& weights) = 0; | ||
}; | ||
} // namespace kagen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.