Number of Triangles in a graph with $n$ vertices and $m$ edgesMaximum number of edges in a non-Hamiltonian graphgraph theory: upper bound on edge number, given number of vertices andHow to prove that for any graph on $8$ nodes with exactly $17$ edges has at least $4$ triangles.How many triangles may a connected simple graph with m edges have at most?Independence Number of A Given GraphNumber of vertices of a complete graph with $n$ edgesInductively the number of edges for a connected graphMinimum Edges per Vertex in a Graph with a Given Number of Edges and VerticesA connected graph with n vertices has at least n-1 edgesUpper bounds for number of $3$-flags in a $(2k, k^2)$-graph $G$

How do I extrude a face to a single vertex

Query about absorption line spectra

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Is camera lens focus an exact point or a range?

Using a siddur to Daven from in a seforim store

How to color a curve

In Star Trek IV, why did the Bounty go back to a time when whales are already rare?

THT: What is a squared annular “ring”?

Bob has never been a M before

Why did the EU agree to delay the Brexit deadline?

Folder comparison

Why is Arduino resetting while driving motors?

Why does Async/Await work properly when the loop is inside the async function and not the other way around?

Open a doc from terminal, but not by its name

What does the Rambam mean when he says that the planets have souls?

A social experiment. What is the worst that can happen?

Drawing ramified coverings with tikz

A Permanent Norse Presence in America

How do ground effect vehicles perform turns?

Transformation of random variables and joint distributions

Java - What do constructor type arguments mean when placed *before* the type?

Is possible to search in vim history?

On a tidally locked planet, would time be quantized?

Does having a TSA Pre-Check member in your flight reservation increase the chances that everyone gets Pre-Check?



Number of Triangles in a graph with $n$ vertices and $m$ edges


Maximum number of edges in a non-Hamiltonian graphgraph theory: upper bound on edge number, given number of vertices andHow to prove that for any graph on $8$ nodes with exactly $17$ edges has at least $4$ triangles.How many triangles may a connected simple graph with m edges have at most?Independence Number of A Given GraphNumber of vertices of a complete graph with $n$ edgesInductively the number of edges for a connected graphMinimum Edges per Vertex in a Graph with a Given Number of Edges and VerticesA connected graph with n vertices has at least n-1 edgesUpper bounds for number of $3$-flags in a $(2k, k^2)$-graph $G$













0












$begingroup$


One can show, that a Graph with at least $n$ vertices and $m$ edges, has at least $dfrac4m3n(m-dfracn^24)$. I was wondering, about the best lowest bound of this, and the best upper bound of this ( is the best upper bound truly, the number of triangles formed in the complete graph , i.e $ Delta(G) choose 3$ ?










share|cite|improve this question











$endgroup$











  • $begingroup$
    Are you demanding the graph be simple? If not, do you count three loops at the same vertex as a triangle?
    $endgroup$
    – Ross Millikan
    Mar 16 at 14:09










  • $begingroup$
    Yes, I suppose its simple, my knowledge is limited at the moment around simple graphs.
    $endgroup$
    – Someone86
    Mar 16 at 14:41















0












$begingroup$


One can show, that a Graph with at least $n$ vertices and $m$ edges, has at least $dfrac4m3n(m-dfracn^24)$. I was wondering, about the best lowest bound of this, and the best upper bound of this ( is the best upper bound truly, the number of triangles formed in the complete graph , i.e $ Delta(G) choose 3$ ?










share|cite|improve this question











$endgroup$











  • $begingroup$
    Are you demanding the graph be simple? If not, do you count three loops at the same vertex as a triangle?
    $endgroup$
    – Ross Millikan
    Mar 16 at 14:09










  • $begingroup$
    Yes, I suppose its simple, my knowledge is limited at the moment around simple graphs.
    $endgroup$
    – Someone86
    Mar 16 at 14:41













0












0








0





$begingroup$


One can show, that a Graph with at least $n$ vertices and $m$ edges, has at least $dfrac4m3n(m-dfracn^24)$. I was wondering, about the best lowest bound of this, and the best upper bound of this ( is the best upper bound truly, the number of triangles formed in the complete graph , i.e $ Delta(G) choose 3$ ?










share|cite|improve this question











$endgroup$




One can show, that a Graph with at least $n$ vertices and $m$ edges, has at least $dfrac4m3n(m-dfracn^24)$. I was wondering, about the best lowest bound of this, and the best upper bound of this ( is the best upper bound truly, the number of triangles formed in the complete graph , i.e $ Delta(G) choose 3$ ?







inequality graph-theory triangles algebraic-graph-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 16 at 13:42









Roddy MacPhee

537118




537118










asked Mar 16 at 11:00









Someone86Someone86

176




176











  • $begingroup$
    Are you demanding the graph be simple? If not, do you count three loops at the same vertex as a triangle?
    $endgroup$
    – Ross Millikan
    Mar 16 at 14:09










  • $begingroup$
    Yes, I suppose its simple, my knowledge is limited at the moment around simple graphs.
    $endgroup$
    – Someone86
    Mar 16 at 14:41
















  • $begingroup$
    Are you demanding the graph be simple? If not, do you count three loops at the same vertex as a triangle?
    $endgroup$
    – Ross Millikan
    Mar 16 at 14:09










  • $begingroup$
    Yes, I suppose its simple, my knowledge is limited at the moment around simple graphs.
    $endgroup$
    – Someone86
    Mar 16 at 14:41















$begingroup$
Are you demanding the graph be simple? If not, do you count three loops at the same vertex as a triangle?
$endgroup$
– Ross Millikan
Mar 16 at 14:09




$begingroup$
Are you demanding the graph be simple? If not, do you count three loops at the same vertex as a triangle?
$endgroup$
– Ross Millikan
Mar 16 at 14:09












$begingroup$
Yes, I suppose its simple, my knowledge is limited at the moment around simple graphs.
$endgroup$
– Someone86
Mar 16 at 14:41




$begingroup$
Yes, I suppose its simple, my knowledge is limited at the moment around simple graphs.
$endgroup$
– Someone86
Mar 16 at 14:41










1 Answer
1






active

oldest

votes


















1












$begingroup$

An upper bound is $frac 13m choose 2=frac m(m-1)6$ because at the most you can choose any two edges and have one triangle, then each triangle gets counted $3$ times. This is achieved in a complete graph. To have a complete graph with $m$ edges requires that $m$ be a triangular number, that $m=frac 12n(n-1)$. The number of triangles is then $n choose 3$ as you say.






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Thank you for the answer, what about the best lowest bound?
    $endgroup$
    – Someone86
    Mar 16 at 16:31










  • $begingroup$
    One lower bound is that the complete bipartite graph on $n$ vertices has $frac n^24$ edges and no triangles. This supports the $(m-frac n^24)$ factor in your expression. Now, if my image is correct, each edge you add adds $frac n2$ triangles, so this approach gives $frac n2(m-frac n^24)$ triangles. I do not know if there is a way to have fewer.
    $endgroup$
    – Ross Millikan
    Mar 16 at 21:08










  • $begingroup$
    I see yes..can you give more details about how you got the result? I have a more complex solution on my mind and yours seems more elegant..
    $endgroup$
    – Someone86
    Mar 17 at 0:11










  • $begingroup$
    I just imagined the complete bipartite graph. You split the vertices into two groups of $frac n2$ and connect all the vertices of one group to all the vertices of the other. There are no triangles. Now if you add an edge, you have to add it within a group. The next sentence is a little wrong, but it is how I was thinking. All the triangles containing that edge have one vertex from the other group, so each time you add an edge you add $frac n2$. This is true until you add more than $frac n4$ edges, at which point you cannot avoid a triangle within the one side.
    $endgroup$
    – Ross Millikan
    Mar 17 at 2:08










Your Answer





StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3150289%2fnumber-of-triangles-in-a-graph-with-n-vertices-and-m-edges%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

An upper bound is $frac 13m choose 2=frac m(m-1)6$ because at the most you can choose any two edges and have one triangle, then each triangle gets counted $3$ times. This is achieved in a complete graph. To have a complete graph with $m$ edges requires that $m$ be a triangular number, that $m=frac 12n(n-1)$. The number of triangles is then $n choose 3$ as you say.






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Thank you for the answer, what about the best lowest bound?
    $endgroup$
    – Someone86
    Mar 16 at 16:31










  • $begingroup$
    One lower bound is that the complete bipartite graph on $n$ vertices has $frac n^24$ edges and no triangles. This supports the $(m-frac n^24)$ factor in your expression. Now, if my image is correct, each edge you add adds $frac n2$ triangles, so this approach gives $frac n2(m-frac n^24)$ triangles. I do not know if there is a way to have fewer.
    $endgroup$
    – Ross Millikan
    Mar 16 at 21:08










  • $begingroup$
    I see yes..can you give more details about how you got the result? I have a more complex solution on my mind and yours seems more elegant..
    $endgroup$
    – Someone86
    Mar 17 at 0:11










  • $begingroup$
    I just imagined the complete bipartite graph. You split the vertices into two groups of $frac n2$ and connect all the vertices of one group to all the vertices of the other. There are no triangles. Now if you add an edge, you have to add it within a group. The next sentence is a little wrong, but it is how I was thinking. All the triangles containing that edge have one vertex from the other group, so each time you add an edge you add $frac n2$. This is true until you add more than $frac n4$ edges, at which point you cannot avoid a triangle within the one side.
    $endgroup$
    – Ross Millikan
    Mar 17 at 2:08















1












$begingroup$

An upper bound is $frac 13m choose 2=frac m(m-1)6$ because at the most you can choose any two edges and have one triangle, then each triangle gets counted $3$ times. This is achieved in a complete graph. To have a complete graph with $m$ edges requires that $m$ be a triangular number, that $m=frac 12n(n-1)$. The number of triangles is then $n choose 3$ as you say.






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Thank you for the answer, what about the best lowest bound?
    $endgroup$
    – Someone86
    Mar 16 at 16:31










  • $begingroup$
    One lower bound is that the complete bipartite graph on $n$ vertices has $frac n^24$ edges and no triangles. This supports the $(m-frac n^24)$ factor in your expression. Now, if my image is correct, each edge you add adds $frac n2$ triangles, so this approach gives $frac n2(m-frac n^24)$ triangles. I do not know if there is a way to have fewer.
    $endgroup$
    – Ross Millikan
    Mar 16 at 21:08










  • $begingroup$
    I see yes..can you give more details about how you got the result? I have a more complex solution on my mind and yours seems more elegant..
    $endgroup$
    – Someone86
    Mar 17 at 0:11










  • $begingroup$
    I just imagined the complete bipartite graph. You split the vertices into two groups of $frac n2$ and connect all the vertices of one group to all the vertices of the other. There are no triangles. Now if you add an edge, you have to add it within a group. The next sentence is a little wrong, but it is how I was thinking. All the triangles containing that edge have one vertex from the other group, so each time you add an edge you add $frac n2$. This is true until you add more than $frac n4$ edges, at which point you cannot avoid a triangle within the one side.
    $endgroup$
    – Ross Millikan
    Mar 17 at 2:08













1












1








1





$begingroup$

An upper bound is $frac 13m choose 2=frac m(m-1)6$ because at the most you can choose any two edges and have one triangle, then each triangle gets counted $3$ times. This is achieved in a complete graph. To have a complete graph with $m$ edges requires that $m$ be a triangular number, that $m=frac 12n(n-1)$. The number of triangles is then $n choose 3$ as you say.






share|cite|improve this answer









$endgroup$



An upper bound is $frac 13m choose 2=frac m(m-1)6$ because at the most you can choose any two edges and have one triangle, then each triangle gets counted $3$ times. This is achieved in a complete graph. To have a complete graph with $m$ edges requires that $m$ be a triangular number, that $m=frac 12n(n-1)$. The number of triangles is then $n choose 3$ as you say.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Mar 16 at 14:56









Ross MillikanRoss Millikan

300k24200375




300k24200375











  • $begingroup$
    Thank you for the answer, what about the best lowest bound?
    $endgroup$
    – Someone86
    Mar 16 at 16:31










  • $begingroup$
    One lower bound is that the complete bipartite graph on $n$ vertices has $frac n^24$ edges and no triangles. This supports the $(m-frac n^24)$ factor in your expression. Now, if my image is correct, each edge you add adds $frac n2$ triangles, so this approach gives $frac n2(m-frac n^24)$ triangles. I do not know if there is a way to have fewer.
    $endgroup$
    – Ross Millikan
    Mar 16 at 21:08










  • $begingroup$
    I see yes..can you give more details about how you got the result? I have a more complex solution on my mind and yours seems more elegant..
    $endgroup$
    – Someone86
    Mar 17 at 0:11










  • $begingroup$
    I just imagined the complete bipartite graph. You split the vertices into two groups of $frac n2$ and connect all the vertices of one group to all the vertices of the other. There are no triangles. Now if you add an edge, you have to add it within a group. The next sentence is a little wrong, but it is how I was thinking. All the triangles containing that edge have one vertex from the other group, so each time you add an edge you add $frac n2$. This is true until you add more than $frac n4$ edges, at which point you cannot avoid a triangle within the one side.
    $endgroup$
    – Ross Millikan
    Mar 17 at 2:08
















  • $begingroup$
    Thank you for the answer, what about the best lowest bound?
    $endgroup$
    – Someone86
    Mar 16 at 16:31










  • $begingroup$
    One lower bound is that the complete bipartite graph on $n$ vertices has $frac n^24$ edges and no triangles. This supports the $(m-frac n^24)$ factor in your expression. Now, if my image is correct, each edge you add adds $frac n2$ triangles, so this approach gives $frac n2(m-frac n^24)$ triangles. I do not know if there is a way to have fewer.
    $endgroup$
    – Ross Millikan
    Mar 16 at 21:08










  • $begingroup$
    I see yes..can you give more details about how you got the result? I have a more complex solution on my mind and yours seems more elegant..
    $endgroup$
    – Someone86
    Mar 17 at 0:11










  • $begingroup$
    I just imagined the complete bipartite graph. You split the vertices into two groups of $frac n2$ and connect all the vertices of one group to all the vertices of the other. There are no triangles. Now if you add an edge, you have to add it within a group. The next sentence is a little wrong, but it is how I was thinking. All the triangles containing that edge have one vertex from the other group, so each time you add an edge you add $frac n2$. This is true until you add more than $frac n4$ edges, at which point you cannot avoid a triangle within the one side.
    $endgroup$
    – Ross Millikan
    Mar 17 at 2:08















$begingroup$
Thank you for the answer, what about the best lowest bound?
$endgroup$
– Someone86
Mar 16 at 16:31




$begingroup$
Thank you for the answer, what about the best lowest bound?
$endgroup$
– Someone86
Mar 16 at 16:31












$begingroup$
One lower bound is that the complete bipartite graph on $n$ vertices has $frac n^24$ edges and no triangles. This supports the $(m-frac n^24)$ factor in your expression. Now, if my image is correct, each edge you add adds $frac n2$ triangles, so this approach gives $frac n2(m-frac n^24)$ triangles. I do not know if there is a way to have fewer.
$endgroup$
– Ross Millikan
Mar 16 at 21:08




$begingroup$
One lower bound is that the complete bipartite graph on $n$ vertices has $frac n^24$ edges and no triangles. This supports the $(m-frac n^24)$ factor in your expression. Now, if my image is correct, each edge you add adds $frac n2$ triangles, so this approach gives $frac n2(m-frac n^24)$ triangles. I do not know if there is a way to have fewer.
$endgroup$
– Ross Millikan
Mar 16 at 21:08












$begingroup$
I see yes..can you give more details about how you got the result? I have a more complex solution on my mind and yours seems more elegant..
$endgroup$
– Someone86
Mar 17 at 0:11




$begingroup$
I see yes..can you give more details about how you got the result? I have a more complex solution on my mind and yours seems more elegant..
$endgroup$
– Someone86
Mar 17 at 0:11












$begingroup$
I just imagined the complete bipartite graph. You split the vertices into two groups of $frac n2$ and connect all the vertices of one group to all the vertices of the other. There are no triangles. Now if you add an edge, you have to add it within a group. The next sentence is a little wrong, but it is how I was thinking. All the triangles containing that edge have one vertex from the other group, so each time you add an edge you add $frac n2$. This is true until you add more than $frac n4$ edges, at which point you cannot avoid a triangle within the one side.
$endgroup$
– Ross Millikan
Mar 17 at 2:08




$begingroup$
I just imagined the complete bipartite graph. You split the vertices into two groups of $frac n2$ and connect all the vertices of one group to all the vertices of the other. There are no triangles. Now if you add an edge, you have to add it within a group. The next sentence is a little wrong, but it is how I was thinking. All the triangles containing that edge have one vertex from the other group, so each time you add an edge you add $frac n2$. This is true until you add more than $frac n4$ edges, at which point you cannot avoid a triangle within the one side.
$endgroup$
– Ross Millikan
Mar 17 at 2:08

















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3150289%2fnumber-of-triangles-in-a-graph-with-n-vertices-and-m-edges%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Solar Wings Breeze Design and development Specifications (Breeze) References Navigation menu1368-485X"Hang glider: Breeze (Solar Wings)"e

Kathakali Contents Etymology and nomenclature History Repertoire Songs and musical instruments Traditional plays Styles: Sampradayam Training centers and awards Relationship to other dance forms See also Notes References External links Navigation menueThe Illustrated Encyclopedia of Hinduism: A-MSouth Asian Folklore: An EncyclopediaRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to Play10.1353/atj.2005.0004The Illustrated Encyclopedia of Hinduism: A-MEncyclopedia of HinduismKathakali Dance-drama: Where Gods and Demons Come to PlaySonic Liturgy: Ritual and Music in Hindu Tradition"The Mirror of Gesture"Kathakali Dance-drama: Where Gods and Demons Come to Play"Kathakali"Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceMedieval Indian Literature: An AnthologyThe Oxford Companion to Indian TheatreSouth Asian Folklore: An Encyclopedia : Afghanistan, Bangladesh, India, Nepal, Pakistan, Sri LankaThe Rise of Performance Studies: Rethinking Richard Schechner's Broad SpectrumIndian Theatre: Traditions of PerformanceModern Asian Theatre and Performance 1900-2000Critical Theory and PerformanceBetween Theater and AnthropologyKathakali603847011Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceBetween Theater and AnthropologyBetween Theater and AnthropologyNambeesan Smaraka AwardsArchivedThe Cambridge Guide to TheatreRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeThe Garland Encyclopedia of World Music: South Asia : the Indian subcontinentThe Ethos of Noh: Actors and Their Art10.2307/1145740By Means of Performance: Intercultural Studies of Theatre and Ritual10.1017/s204912550000100xReconceiving the Renaissance: A Critical ReaderPerformance TheoryListening to Theatre: The Aural Dimension of Beijing Opera10.2307/1146013Kathakali: The Art of the Non-WorldlyOn KathakaliKathakali, the dance theatreThe Kathakali Complex: Performance & StructureKathakali Dance-Drama: Where Gods and Demons Come to Play10.1093/obo/9780195399318-0071Drama and Ritual of Early Hinduism"In the Shadow of Hollywood Orientalism: Authentic East Indian Dancing"10.1080/08949460490274013Sanskrit Play Production in Ancient IndiaIndian Music: History and StructureBharata, the Nāṭyaśāstra233639306Table of Contents2238067286469807Dance In Indian Painting10.2307/32047833204783Kathakali Dance-Theatre: A Visual Narrative of Sacred Indian MimeIndian Classical Dance: The Renaissance and BeyondKathakali: an indigenous art-form of Keralaeee

Method to test if a number is a perfect power? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Detecting perfect squares faster than by extracting square rooteffective way to get the integer sequence A181392 from oeisA rarely mentioned fact about perfect powersHow many numbers such $n$ are there that $n<100,lfloorsqrtn rfloor mid n$Check perfect squareness by modulo division against multiple basesFor what pair of integers $(a,b)$ is $3^a + 7^b$ a perfect square.Do there exist any positive integers $n$ such that $lfloore^nrfloor$ is a perfect power? What is the probability that one exists?finding perfect power factors of an integerProve that the sequence contains a perfect square for any natural number $m $ in the domain of $f$ .Counting Perfect Powers