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 is required 'RGL / Implication' DG = RGL :: Guided Gadget Graph [1,2,3,4,5,6,3,2,4]

thanks.

This 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

Why? According to

To represent the adjacent list, the square is of a top, by default, a set

Unless you configure it otherwise.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -