Can we convert graph into set in ruby -
How to change the following article in 'set' because I have a graph I need to check that graph is this graph Has a subset of thanks. This Why? According to To represent the adjacent list, the square is of a top, by default, a set Unless you configure it otherwise. is required 'RGL / Implication' DG = RGL :: Guided Gadget Graph [1,2,3,4,5,6,3,2,4]
to_set method will do this for you. Expected 'rgl / adjacency' dg = RGL :: Guided disablement graph [1,2,3,4,5,6,3,2,4] dg_subgraph = RGL :: Directedgegeographic graph [1, 2] Dg_subgraph.to_set.subset? Dg.to_set # = & gt; True
Comments
Post a Comment