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 rulesv -> wto specify the graphg.
Examples
GraphHub[StarGraph[10]]GraphHub[RandomGraph[{20, 40}]]Please visit the official Wolfram Language Reference for more details.