Ask Your Question

salam's profile - activity

2024-03-03 08:58:44 +0200 received badge  Notable Question (source)
2024-03-03 08:58:44 +0200 received badge  Popular Question (source)
2023-08-05 13:57:43 +0200 received badge  Famous Question (source)
2022-12-31 11:44:55 +0200 received badge  Popular Question (source)
2022-09-18 22:47:55 +0200 marked best answer twin free graphs

A graph is called twin-free if distinct vertices have different neighborhoods. I have no idea how to obtain twin-free graphs in Sagemath. Would please you help me?

2022-09-17 21:22:15 +0200 commented question twin free graphs

@John Palmieri, Yes, the natural way is to obtain the neighborhoods of any two vertices and compare them. To find an opt

2022-09-17 18:30:59 +0200 commented question twin free graphs

@John Palmieri, thank you. I know that function but let G=graphs.CompleteBipartiteGraph(2,2); I would like to know i

2022-09-17 18:25:52 +0200 commented question twin free graphs

@John Palmieri, thank you. I know that function but let G=graphs.CompleteBipartiteGraph(2,2); I would like to know i

2022-09-16 14:44:19 +0200 asked a question twin free graphs

twin free graphs A graph is called twin-free if distinct vertices have different neighborhoods. I have no idea how to ob

2022-07-02 08:59:15 +0200 received badge  Notable Question (source)
2021-08-18 17:38:38 +0200 edited question Factor-critical graph

Factor-critical graph I want to check that a graph is factor-critical or not. I did not find any code to do that, except

2021-08-18 15:40:15 +0200 asked a question Factor-critical graph

Factor-critical graph I want to check that a graph is factor-critical or not. I did not find any code to do that, except

2021-07-20 15:30:10 +0200 commented answer Plotting a Cayley graph

@John, thank you so much.

2021-07-20 15:29:58 +0200 commented answer Plotting a Cayley graph

@ John, thank you so much.

2021-07-20 15:29:42 +0200 commented answer Plotting a Cayley graph

@John, thank you so much.

2021-07-20 15:29:07 +0200 marked best answer Plotting a Cayley graph

I want to plot a Cayley graph that its connection set is derangements. I mean https://doc.sagemath.org/html/en/refe...

I wrote this code, but it fails to run.

G = SymmetricGroup(3)
CG = G.cayley_graph(generators = Derangements(3))
CGU = CG.to_undirected()
CGU.show()

Could you please give me help?

2021-07-19 18:21:04 +0200 asked a question Plotting a Cayley graph

Plotting a Cayley graph I want to plot a Cayley graph that its connection set is derangements. I mean https://doc.sagema

2021-02-27 16:49:39 +0200 asked a question $k$-independence number in graphs

I know how to find the independence number in graphs in sagemath. I want to obtain a new parameter called $k$-independence number in graphs which means the maximum size of a set of vertices at pairwise distance greater than $k$.

Would you please tell me how I can find this parameter in a graph?

2020-12-17 18:53:44 +0200 received badge  Popular Question (source)
2020-04-19 16:24:34 +0200 received badge  Nice Question (source)
2020-04-18 13:44:49 +0200 commented answer Plotting eigenvalues in complex plane

Thank you.

2020-04-18 12:06:14 +0200 commented answer Plotting eigenvalues in complex plane

@vdelecroix Thanks, if I want to do this for several times, I checked the following code, but it didn't work

for i in range(5):
point2d(random_matrix(ZZ, 10, 10, x=0, y=2).charpoly().roots(CDF, False), size=50)

Is it correct?

2020-04-18 00:58:31 +0200 asked a question Plotting eigenvalues in complex plane

Would you please tell how I can define a random matrix whose entries are 1, 0 and plot its eigenvalues in the complex plane?

2020-04-16 14:34:35 +0200 commented answer Define a graph

@slelievre, Thank you. If I want to contract edges between the tree and Petersen graphs, what codes should be inserted?

2020-04-14 21:01:45 +0200 asked a question Define a graph

I would like to define a graph G as follows:

Assume T is a graph with t leaves. Add t copies of Petersen graph to T and identify a vertex from the outer cycle of each Petersen graph with a leaf such that t added Petersen graphs are disjoint.

I would appreciate it if you tell how I can define this graph.

2020-04-14 17:51:28 +0200 received badge  Scholar (source)
2020-04-14 17:51:25 +0200 commented answer Find the induced matching

@tmonteil, Thanks, I think it works, but I do not know how to write the code

2020-04-13 22:27:15 +0200 commented answer Find the induced matching

@tmonteil, I know how to find the matching number, but I am looking for the induced matching https://en.wikipedia.org/wiki/Induced...

2020-04-13 21:24:32 +0200 received badge  Student (source)
2020-04-13 14:49:48 +0200 received badge  Editor (source)
2020-04-13 14:28:57 +0200 asked a question Find the induced matching

An induced matching in a graph G is a set of edges, no two of which meet a common node or are joined by an edge of G; that is, an induced matching is a matching which forms an induced subgraph.

Would you please tell me how I can find the max induced matching in a graph?