Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to find neighbor sum of a set of vertices in a graph by using sagemath?

I am having list of dominating sets of a simple graph G. I need to find the cardinality of neighbors of each dominating sets. For that, first i want to know that how to find cardinality of neighbors of a set of vertices of of G by using sagemath.