Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvement: generalize CausalGraph.from_adjacency_matrix (#53)
Description and Motivation The cai_causal_graph.causal_graph.CausalGraph.from_adjacency_matrix is now a class method (rather than being a static method) which has been generalized to return an instance of the class on which it has been called (e.g. enabling returning instances of classes inheriting from cai_causal_graph.causal_graph.CausalGraph. Additional Context This is to simplify extending CausalGraph class and to bring from_adjancency_matrix in line with other class construction methods such as from_dict. This change is completely backwards compatible since the API of the method is unchanged. How Has This Been Tested? Existing tests.
- Loading branch information