WLJS LogoWLJS Notebook

GraphHub

GraphHub[g] gives the set of vertices with maximum vertex degree in the underlying simple graph of g.

  • GraphHub[g, "In"] gives the set of vertices with maximum vertex in-degree.
  • GraphHub[g, "Out"] gives the set of vertices with maximum vertex out-degree.
  • GraphHub[{v -> w, …}, …] uses rules v -> w to specify the graph g.

Examples

GraphHub[StarGraph[10]]
GraphHub[RandomGraph[{20, 40}]]

Please visit the official Wolfram Language Reference for more details.

On this page