Skip to content

Commit

Permalink
feat: igGraphList::set_directed()
Browse files Browse the repository at this point in the history
  • Loading branch information
szhorvat committed Jul 12, 2024
1 parent 7b0feba commit e83e143
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/typed_list_pmt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ class LIST_TYPE_TEMPL {
friend void swap(LIST_TYPE &t1, LIST_TYPE &t2) noexcept {
FUNCTION(swap)(t1.ptr, t2.ptr);
}

#ifdef GRAPH_LIST
void set_directed(bool directed) {
igraph_graph_list_set_directed(ptr, directed);
}
#endif
};

class LIST_TYPE_TEMPL::iterator {
Expand Down

0 comments on commit e83e143

Please sign in to comment.