Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 61985

Questions about handling graphs in Mathematica, graph theory, graph visualization, GraphPlot, the built-in Graph type and the Combinatorica` package.

4 votes
1 answer
83 views

Question about FindKClique

Say we have a graph: g = CompleteGraph[5]; and that we want to find all the triangles in g. I tried to use FindKClique, in the following way: FindKClique[g,1,{3},All] but it returns an empty lis …
amator2357's user avatar
  • 1,404
7 votes
3 answers
463 views

TreeGraph construction

I have a list l={{1,1},{2,3},{2,3,2,3,4}}. Based on that list, I want to draw a tree. Starting from a single point at the top of a tree, I proceed as follows, using the list: first we draw two single …
amator2357's user avatar
  • 1,404
1 vote

TreeGraph construction

I will post my own answer as well, just for completeness. @kglr's and @Szabolcs's answers are much nicer, and work for more general cases, but in my situation, I needed something slightly different, …
amator2357's user avatar
  • 1,404
4 votes
2 answers
104 views

Adding edges to a TreeForm of an expression

Say I have an expression {1,{{2,3},4}}. It's TreeForm looks as follows: {1,{{2,3},4}} //TreeForm Now, on each level of that tree I would like to draw an edge where there isn't one, i.e. between 1 …
amator2357's user avatar
  • 1,404
4 votes
2 answers
97 views

Issue with displaying a tree graph after deleting a vertex

Say, I have an expression tree: g = IGExpressionTree[ {{{1,2},{{3,4},{5,6}}},7}, VertexLabels -> "Name"] From that tree I want to delete all the vertices that aren't the parents of any other verti …
amator2357's user avatar
  • 1,404