Is Category Theory similar to Graph Theory?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
16
down vote

favorite
10












The following author noted:




Roughly speaking, category theory is graph theory with additional structure to represent composition.




My question is: Is Category Theory similar to Graph Theory?







share|cite|improve this question
















  • 1




    Category Theory is distinct from Graph Theory in that Graph Theory can be captured in the language of set-theory whereas Category Theory often cannot be. Category Theory is about general structures of mathematical objects with certain conditions imposed (such as identity arrows, composition of arrows, and associativity of arrows). Certain categories certainly appear to be like directed-graphs but they often have more structure. The following link will provide some more information: plato.stanford.edu/entries/category-theory
    – letsmakemuffinstogether
    Apr 17 '15 at 13:24






  • 4




    Roughly speaking, group theory is set theory with additional structure to represent composition. Can we conclude that group theory is similar to set theory ?
    – Roland
    Apr 17 '15 at 16:22














up vote
16
down vote

favorite
10












The following author noted:




Roughly speaking, category theory is graph theory with additional structure to represent composition.




My question is: Is Category Theory similar to Graph Theory?







share|cite|improve this question
















  • 1




    Category Theory is distinct from Graph Theory in that Graph Theory can be captured in the language of set-theory whereas Category Theory often cannot be. Category Theory is about general structures of mathematical objects with certain conditions imposed (such as identity arrows, composition of arrows, and associativity of arrows). Certain categories certainly appear to be like directed-graphs but they often have more structure. The following link will provide some more information: plato.stanford.edu/entries/category-theory
    – letsmakemuffinstogether
    Apr 17 '15 at 13:24






  • 4




    Roughly speaking, group theory is set theory with additional structure to represent composition. Can we conclude that group theory is similar to set theory ?
    – Roland
    Apr 17 '15 at 16:22












up vote
16
down vote

favorite
10









up vote
16
down vote

favorite
10






10





The following author noted:




Roughly speaking, category theory is graph theory with additional structure to represent composition.




My question is: Is Category Theory similar to Graph Theory?







share|cite|improve this question












The following author noted:




Roughly speaking, category theory is graph theory with additional structure to represent composition.




My question is: Is Category Theory similar to Graph Theory?









share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Apr 17 '15 at 13:17









hawkeye

504411




504411







  • 1




    Category Theory is distinct from Graph Theory in that Graph Theory can be captured in the language of set-theory whereas Category Theory often cannot be. Category Theory is about general structures of mathematical objects with certain conditions imposed (such as identity arrows, composition of arrows, and associativity of arrows). Certain categories certainly appear to be like directed-graphs but they often have more structure. The following link will provide some more information: plato.stanford.edu/entries/category-theory
    – letsmakemuffinstogether
    Apr 17 '15 at 13:24






  • 4




    Roughly speaking, group theory is set theory with additional structure to represent composition. Can we conclude that group theory is similar to set theory ?
    – Roland
    Apr 17 '15 at 16:22












  • 1




    Category Theory is distinct from Graph Theory in that Graph Theory can be captured in the language of set-theory whereas Category Theory often cannot be. Category Theory is about general structures of mathematical objects with certain conditions imposed (such as identity arrows, composition of arrows, and associativity of arrows). Certain categories certainly appear to be like directed-graphs but they often have more structure. The following link will provide some more information: plato.stanford.edu/entries/category-theory
    – letsmakemuffinstogether
    Apr 17 '15 at 13:24






  • 4




    Roughly speaking, group theory is set theory with additional structure to represent composition. Can we conclude that group theory is similar to set theory ?
    – Roland
    Apr 17 '15 at 16:22







1




1




Category Theory is distinct from Graph Theory in that Graph Theory can be captured in the language of set-theory whereas Category Theory often cannot be. Category Theory is about general structures of mathematical objects with certain conditions imposed (such as identity arrows, composition of arrows, and associativity of arrows). Certain categories certainly appear to be like directed-graphs but they often have more structure. The following link will provide some more information: plato.stanford.edu/entries/category-theory
– letsmakemuffinstogether
Apr 17 '15 at 13:24




Category Theory is distinct from Graph Theory in that Graph Theory can be captured in the language of set-theory whereas Category Theory often cannot be. Category Theory is about general structures of mathematical objects with certain conditions imposed (such as identity arrows, composition of arrows, and associativity of arrows). Certain categories certainly appear to be like directed-graphs but they often have more structure. The following link will provide some more information: plato.stanford.edu/entries/category-theory
– letsmakemuffinstogether
Apr 17 '15 at 13:24




4




4




Roughly speaking, group theory is set theory with additional structure to represent composition. Can we conclude that group theory is similar to set theory ?
– Roland
Apr 17 '15 at 16:22




Roughly speaking, group theory is set theory with additional structure to represent composition. Can we conclude that group theory is similar to set theory ?
– Roland
Apr 17 '15 at 16:22










3 Answers
3






active

oldest

votes

















up vote
18
down vote



accepted










In fact, "Roughly speaking, category theory is graph theory with additional structure to represent composition." is a good summary of the connection between the notion of a graph (meaning here: directed multigraph) and the notion of a category. Here is a way of how to make this precise:



Let $O$ be a set ("set of vertices"). Then we have a category $O-mathsfGraph$ whose objects are sets $M$ ("set of edges") equipped with two maps $s,t : M rightrightarrows O$ ("source" and "target"). This category is monoidal: The unit is $mathrmid : O rightrightarrows O$, the tensor product of $s,t : M rightrightarrows O$ with $u,v : N rightrightarrows O$ is the fiber product $M times_t,O,u N$ equipped with the maps $rightrightarrows O$ induced by $s$ and $v$. To any monoidal category, we may associate the category of monoid objects.



Observation. A category with object set $O$ is the same as a monoid object in $O-mathsfGraph$.



This description is quite nice, as it really says in how far categories are "graphs with multiplication". If $O$ is a class, we can make the obvious adjustments; or we use ZFC + Grothendieck universes, so that we can work with sets alone. It is possible to get rid of the $O$ in the statement (which is quite natural, because we never want to fix the object set), but then you will have to use more advanced language: A category is the same as a monad object in the bicategory of spans.



However, this connection between the notion of a category and the notion of a graph does not mean that the theories are similar. Categories have a much richer structure, namely the composition of arrows, and this structure is used in category theory all over the place, for example in the context of commutative diagrams, universal properties, adjunctions etc. In graph theory, though, we just don't have this kind of structure. Also, many notions in graph theory only make sense for finite graphs, whereas finite categories don't appear so often in category theory.



There are some overlappings, though. An object of a category is called initial if it admits a unique morphism to each other object. This only refers to the underlying graph of the category, and in fact, makes sense for arbitrary (directed) graphs. We may call a vertex initial if it admits a unique edge to any other vertex. Similarly, we may speak of final vertices.



A graph is connected if there is a vertex which reaches every other vertex via some zig-zag path of edges. The same notion makes sense for categories (i.e. one doesn't refer to the composition of arrows here). Every category is a coproduct of connected categories, and this is useful sometimes.



Two vertices in a graph are called adjacent if there is an edge between them. This notion is not so important in category theory because often one wants to know more than just the existence of a morphism. Moreover, in some categories, such as the category of abelian groups, there is a zero morphism between any two objects.



PS: I don't agree with the answer by Ove Ahlman, see my comment there.






share|cite|improve this answer





























    up vote
    6
    down vote













    Category theory and graph theory are similar in the sense that both are visualized by arrows between dots.
    After this the similarities quite much stop, and both have different reason for their existence.



    In category theory, we may have a huge amount of dots, and these dots do often represent some abstract algebraic structure or other object with some meaning. The arrows which go between dots needs to respect very specific rules, which makes it possible to draw conclusion about the category and hence about the objects which the dots represents.



    In Graph theory however we can draw the arrows in any way we want do not need to care about rules. This gives us a very free way to draw, but also, we do not get the same implementations as graph theory may draw conclusion about the objects which the dots represent, since in graph theory we have dots without meaning.



    Category theory draws from graph theory that we may talk about dots being connected, the degree of a dot etc. And when we do not have an extremly huge amount of dots, a category is a graph. So in this case Category theory is just a special case of graph theory.
    On the other hand, graph theory (and everything else) may be studied abstractly in category theory, so we could say that graph theory is a special object of study in category theory.



    My conclusion Is that the largest similarity (and why people think they are similar) is the way we visualize the two.






    share|cite|improve this answer
















    • 8




      Size issues? That's not the point. Categories allow us to compose arrows. This is the difference to graphs. Composition is not an extra rule. It is extra structure. Also, every graph produces a category, the path category, and conversely any (small) category has an underlying graph. It is not correct that a category is a graph, though. In particular, the conclusion "So in this case Category theory is just a special case of graph theory" is absolutey wrong. What is a commutative diagram in a graph?
      – Martin Brandenburg
      Apr 17 '15 at 15:23











    • Seconded. Just to add two usual alternative technical terms: in the above answer, in "Composition is not an extra rule. It is extra structure." one can replace "rule" with "axiom" and "structure" with "data" to arrive at: Composition is not an extra axiom. It is extra data.
      – Peter Heinig
      Aug 1 '17 at 10:55

















    up vote
    1
    down vote














    A deductive system is a graph in which to each object $A$ there is associated an arrow $1_A: Ato A$, the identity arrow, and to each pair of arrows $f:Ato B$ and $g:Bto C$ there is associated an arrow $gf:Ato C$, the composition of $f$ and $g$.



    A logician may think of the objects as formulas and of the arrows as deductions or proofs, hence of



    $$fracf:Ato B qquad g:Bto Cgf:Ato C$$



    as a rule of inference.



    A category is a deductive system in which the following equations hold for all $f:Ato B$, $g:Bto C$ and $h:Cto D$:



    $$f1_A=f=1_Bf$$
    $$(hg)f=h(gf)$$




    (Lambek & Scott. Introduction to higher order categorical logic, p. 5)



    In summary: Lambek and Scott define a deductive system as a (directed) graph with units and compositions (alias modus ponens, alias rule of inference) and a category as a deductive system where the 'ususal' laws hold for units and rule of inference.






    share|cite|improve this answer




















      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',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      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%2f1239027%2fis-category-theory-similar-to-graph-theory%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      18
      down vote



      accepted










      In fact, "Roughly speaking, category theory is graph theory with additional structure to represent composition." is a good summary of the connection between the notion of a graph (meaning here: directed multigraph) and the notion of a category. Here is a way of how to make this precise:



      Let $O$ be a set ("set of vertices"). Then we have a category $O-mathsfGraph$ whose objects are sets $M$ ("set of edges") equipped with two maps $s,t : M rightrightarrows O$ ("source" and "target"). This category is monoidal: The unit is $mathrmid : O rightrightarrows O$, the tensor product of $s,t : M rightrightarrows O$ with $u,v : N rightrightarrows O$ is the fiber product $M times_t,O,u N$ equipped with the maps $rightrightarrows O$ induced by $s$ and $v$. To any monoidal category, we may associate the category of monoid objects.



      Observation. A category with object set $O$ is the same as a monoid object in $O-mathsfGraph$.



      This description is quite nice, as it really says in how far categories are "graphs with multiplication". If $O$ is a class, we can make the obvious adjustments; or we use ZFC + Grothendieck universes, so that we can work with sets alone. It is possible to get rid of the $O$ in the statement (which is quite natural, because we never want to fix the object set), but then you will have to use more advanced language: A category is the same as a monad object in the bicategory of spans.



      However, this connection between the notion of a category and the notion of a graph does not mean that the theories are similar. Categories have a much richer structure, namely the composition of arrows, and this structure is used in category theory all over the place, for example in the context of commutative diagrams, universal properties, adjunctions etc. In graph theory, though, we just don't have this kind of structure. Also, many notions in graph theory only make sense for finite graphs, whereas finite categories don't appear so often in category theory.



      There are some overlappings, though. An object of a category is called initial if it admits a unique morphism to each other object. This only refers to the underlying graph of the category, and in fact, makes sense for arbitrary (directed) graphs. We may call a vertex initial if it admits a unique edge to any other vertex. Similarly, we may speak of final vertices.



      A graph is connected if there is a vertex which reaches every other vertex via some zig-zag path of edges. The same notion makes sense for categories (i.e. one doesn't refer to the composition of arrows here). Every category is a coproduct of connected categories, and this is useful sometimes.



      Two vertices in a graph are called adjacent if there is an edge between them. This notion is not so important in category theory because often one wants to know more than just the existence of a morphism. Moreover, in some categories, such as the category of abelian groups, there is a zero morphism between any two objects.



      PS: I don't agree with the answer by Ove Ahlman, see my comment there.






      share|cite|improve this answer


























        up vote
        18
        down vote



        accepted










        In fact, "Roughly speaking, category theory is graph theory with additional structure to represent composition." is a good summary of the connection between the notion of a graph (meaning here: directed multigraph) and the notion of a category. Here is a way of how to make this precise:



        Let $O$ be a set ("set of vertices"). Then we have a category $O-mathsfGraph$ whose objects are sets $M$ ("set of edges") equipped with two maps $s,t : M rightrightarrows O$ ("source" and "target"). This category is monoidal: The unit is $mathrmid : O rightrightarrows O$, the tensor product of $s,t : M rightrightarrows O$ with $u,v : N rightrightarrows O$ is the fiber product $M times_t,O,u N$ equipped with the maps $rightrightarrows O$ induced by $s$ and $v$. To any monoidal category, we may associate the category of monoid objects.



        Observation. A category with object set $O$ is the same as a monoid object in $O-mathsfGraph$.



        This description is quite nice, as it really says in how far categories are "graphs with multiplication". If $O$ is a class, we can make the obvious adjustments; or we use ZFC + Grothendieck universes, so that we can work with sets alone. It is possible to get rid of the $O$ in the statement (which is quite natural, because we never want to fix the object set), but then you will have to use more advanced language: A category is the same as a monad object in the bicategory of spans.



        However, this connection between the notion of a category and the notion of a graph does not mean that the theories are similar. Categories have a much richer structure, namely the composition of arrows, and this structure is used in category theory all over the place, for example in the context of commutative diagrams, universal properties, adjunctions etc. In graph theory, though, we just don't have this kind of structure. Also, many notions in graph theory only make sense for finite graphs, whereas finite categories don't appear so often in category theory.



        There are some overlappings, though. An object of a category is called initial if it admits a unique morphism to each other object. This only refers to the underlying graph of the category, and in fact, makes sense for arbitrary (directed) graphs. We may call a vertex initial if it admits a unique edge to any other vertex. Similarly, we may speak of final vertices.



        A graph is connected if there is a vertex which reaches every other vertex via some zig-zag path of edges. The same notion makes sense for categories (i.e. one doesn't refer to the composition of arrows here). Every category is a coproduct of connected categories, and this is useful sometimes.



        Two vertices in a graph are called adjacent if there is an edge between them. This notion is not so important in category theory because often one wants to know more than just the existence of a morphism. Moreover, in some categories, such as the category of abelian groups, there is a zero morphism between any two objects.



        PS: I don't agree with the answer by Ove Ahlman, see my comment there.






        share|cite|improve this answer
























          up vote
          18
          down vote



          accepted







          up vote
          18
          down vote



          accepted






          In fact, "Roughly speaking, category theory is graph theory with additional structure to represent composition." is a good summary of the connection between the notion of a graph (meaning here: directed multigraph) and the notion of a category. Here is a way of how to make this precise:



          Let $O$ be a set ("set of vertices"). Then we have a category $O-mathsfGraph$ whose objects are sets $M$ ("set of edges") equipped with two maps $s,t : M rightrightarrows O$ ("source" and "target"). This category is monoidal: The unit is $mathrmid : O rightrightarrows O$, the tensor product of $s,t : M rightrightarrows O$ with $u,v : N rightrightarrows O$ is the fiber product $M times_t,O,u N$ equipped with the maps $rightrightarrows O$ induced by $s$ and $v$. To any monoidal category, we may associate the category of monoid objects.



          Observation. A category with object set $O$ is the same as a monoid object in $O-mathsfGraph$.



          This description is quite nice, as it really says in how far categories are "graphs with multiplication". If $O$ is a class, we can make the obvious adjustments; or we use ZFC + Grothendieck universes, so that we can work with sets alone. It is possible to get rid of the $O$ in the statement (which is quite natural, because we never want to fix the object set), but then you will have to use more advanced language: A category is the same as a monad object in the bicategory of spans.



          However, this connection between the notion of a category and the notion of a graph does not mean that the theories are similar. Categories have a much richer structure, namely the composition of arrows, and this structure is used in category theory all over the place, for example in the context of commutative diagrams, universal properties, adjunctions etc. In graph theory, though, we just don't have this kind of structure. Also, many notions in graph theory only make sense for finite graphs, whereas finite categories don't appear so often in category theory.



          There are some overlappings, though. An object of a category is called initial if it admits a unique morphism to each other object. This only refers to the underlying graph of the category, and in fact, makes sense for arbitrary (directed) graphs. We may call a vertex initial if it admits a unique edge to any other vertex. Similarly, we may speak of final vertices.



          A graph is connected if there is a vertex which reaches every other vertex via some zig-zag path of edges. The same notion makes sense for categories (i.e. one doesn't refer to the composition of arrows here). Every category is a coproduct of connected categories, and this is useful sometimes.



          Two vertices in a graph are called adjacent if there is an edge between them. This notion is not so important in category theory because often one wants to know more than just the existence of a morphism. Moreover, in some categories, such as the category of abelian groups, there is a zero morphism between any two objects.



          PS: I don't agree with the answer by Ove Ahlman, see my comment there.






          share|cite|improve this answer














          In fact, "Roughly speaking, category theory is graph theory with additional structure to represent composition." is a good summary of the connection between the notion of a graph (meaning here: directed multigraph) and the notion of a category. Here is a way of how to make this precise:



          Let $O$ be a set ("set of vertices"). Then we have a category $O-mathsfGraph$ whose objects are sets $M$ ("set of edges") equipped with two maps $s,t : M rightrightarrows O$ ("source" and "target"). This category is monoidal: The unit is $mathrmid : O rightrightarrows O$, the tensor product of $s,t : M rightrightarrows O$ with $u,v : N rightrightarrows O$ is the fiber product $M times_t,O,u N$ equipped with the maps $rightrightarrows O$ induced by $s$ and $v$. To any monoidal category, we may associate the category of monoid objects.



          Observation. A category with object set $O$ is the same as a monoid object in $O-mathsfGraph$.



          This description is quite nice, as it really says in how far categories are "graphs with multiplication". If $O$ is a class, we can make the obvious adjustments; or we use ZFC + Grothendieck universes, so that we can work with sets alone. It is possible to get rid of the $O$ in the statement (which is quite natural, because we never want to fix the object set), but then you will have to use more advanced language: A category is the same as a monad object in the bicategory of spans.



          However, this connection between the notion of a category and the notion of a graph does not mean that the theories are similar. Categories have a much richer structure, namely the composition of arrows, and this structure is used in category theory all over the place, for example in the context of commutative diagrams, universal properties, adjunctions etc. In graph theory, though, we just don't have this kind of structure. Also, many notions in graph theory only make sense for finite graphs, whereas finite categories don't appear so often in category theory.



          There are some overlappings, though. An object of a category is called initial if it admits a unique morphism to each other object. This only refers to the underlying graph of the category, and in fact, makes sense for arbitrary (directed) graphs. We may call a vertex initial if it admits a unique edge to any other vertex. Similarly, we may speak of final vertices.



          A graph is connected if there is a vertex which reaches every other vertex via some zig-zag path of edges. The same notion makes sense for categories (i.e. one doesn't refer to the composition of arrows here). Every category is a coproduct of connected categories, and this is useful sometimes.



          Two vertices in a graph are called adjacent if there is an edge between them. This notion is not so important in category theory because often one wants to know more than just the existence of a morphism. Moreover, in some categories, such as the category of abelian groups, there is a zero morphism between any two objects.



          PS: I don't agree with the answer by Ove Ahlman, see my comment there.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Apr 17 '15 at 16:00

























          answered Apr 17 '15 at 15:44









          Martin Brandenburg

          105k13150318




          105k13150318




















              up vote
              6
              down vote













              Category theory and graph theory are similar in the sense that both are visualized by arrows between dots.
              After this the similarities quite much stop, and both have different reason for their existence.



              In category theory, we may have a huge amount of dots, and these dots do often represent some abstract algebraic structure or other object with some meaning. The arrows which go between dots needs to respect very specific rules, which makes it possible to draw conclusion about the category and hence about the objects which the dots represents.



              In Graph theory however we can draw the arrows in any way we want do not need to care about rules. This gives us a very free way to draw, but also, we do not get the same implementations as graph theory may draw conclusion about the objects which the dots represent, since in graph theory we have dots without meaning.



              Category theory draws from graph theory that we may talk about dots being connected, the degree of a dot etc. And when we do not have an extremly huge amount of dots, a category is a graph. So in this case Category theory is just a special case of graph theory.
              On the other hand, graph theory (and everything else) may be studied abstractly in category theory, so we could say that graph theory is a special object of study in category theory.



              My conclusion Is that the largest similarity (and why people think they are similar) is the way we visualize the two.






              share|cite|improve this answer
















              • 8




                Size issues? That's not the point. Categories allow us to compose arrows. This is the difference to graphs. Composition is not an extra rule. It is extra structure. Also, every graph produces a category, the path category, and conversely any (small) category has an underlying graph. It is not correct that a category is a graph, though. In particular, the conclusion "So in this case Category theory is just a special case of graph theory" is absolutey wrong. What is a commutative diagram in a graph?
                – Martin Brandenburg
                Apr 17 '15 at 15:23











              • Seconded. Just to add two usual alternative technical terms: in the above answer, in "Composition is not an extra rule. It is extra structure." one can replace "rule" with "axiom" and "structure" with "data" to arrive at: Composition is not an extra axiom. It is extra data.
                – Peter Heinig
                Aug 1 '17 at 10:55














              up vote
              6
              down vote













              Category theory and graph theory are similar in the sense that both are visualized by arrows between dots.
              After this the similarities quite much stop, and both have different reason for their existence.



              In category theory, we may have a huge amount of dots, and these dots do often represent some abstract algebraic structure or other object with some meaning. The arrows which go between dots needs to respect very specific rules, which makes it possible to draw conclusion about the category and hence about the objects which the dots represents.



              In Graph theory however we can draw the arrows in any way we want do not need to care about rules. This gives us a very free way to draw, but also, we do not get the same implementations as graph theory may draw conclusion about the objects which the dots represent, since in graph theory we have dots without meaning.



              Category theory draws from graph theory that we may talk about dots being connected, the degree of a dot etc. And when we do not have an extremly huge amount of dots, a category is a graph. So in this case Category theory is just a special case of graph theory.
              On the other hand, graph theory (and everything else) may be studied abstractly in category theory, so we could say that graph theory is a special object of study in category theory.



              My conclusion Is that the largest similarity (and why people think they are similar) is the way we visualize the two.






              share|cite|improve this answer
















              • 8




                Size issues? That's not the point. Categories allow us to compose arrows. This is the difference to graphs. Composition is not an extra rule. It is extra structure. Also, every graph produces a category, the path category, and conversely any (small) category has an underlying graph. It is not correct that a category is a graph, though. In particular, the conclusion "So in this case Category theory is just a special case of graph theory" is absolutey wrong. What is a commutative diagram in a graph?
                – Martin Brandenburg
                Apr 17 '15 at 15:23











              • Seconded. Just to add two usual alternative technical terms: in the above answer, in "Composition is not an extra rule. It is extra structure." one can replace "rule" with "axiom" and "structure" with "data" to arrive at: Composition is not an extra axiom. It is extra data.
                – Peter Heinig
                Aug 1 '17 at 10:55












              up vote
              6
              down vote










              up vote
              6
              down vote









              Category theory and graph theory are similar in the sense that both are visualized by arrows between dots.
              After this the similarities quite much stop, and both have different reason for their existence.



              In category theory, we may have a huge amount of dots, and these dots do often represent some abstract algebraic structure or other object with some meaning. The arrows which go between dots needs to respect very specific rules, which makes it possible to draw conclusion about the category and hence about the objects which the dots represents.



              In Graph theory however we can draw the arrows in any way we want do not need to care about rules. This gives us a very free way to draw, but also, we do not get the same implementations as graph theory may draw conclusion about the objects which the dots represent, since in graph theory we have dots without meaning.



              Category theory draws from graph theory that we may talk about dots being connected, the degree of a dot etc. And when we do not have an extremly huge amount of dots, a category is a graph. So in this case Category theory is just a special case of graph theory.
              On the other hand, graph theory (and everything else) may be studied abstractly in category theory, so we could say that graph theory is a special object of study in category theory.



              My conclusion Is that the largest similarity (and why people think they are similar) is the way we visualize the two.






              share|cite|improve this answer












              Category theory and graph theory are similar in the sense that both are visualized by arrows between dots.
              After this the similarities quite much stop, and both have different reason for their existence.



              In category theory, we may have a huge amount of dots, and these dots do often represent some abstract algebraic structure or other object with some meaning. The arrows which go between dots needs to respect very specific rules, which makes it possible to draw conclusion about the category and hence about the objects which the dots represents.



              In Graph theory however we can draw the arrows in any way we want do not need to care about rules. This gives us a very free way to draw, but also, we do not get the same implementations as graph theory may draw conclusion about the objects which the dots represent, since in graph theory we have dots without meaning.



              Category theory draws from graph theory that we may talk about dots being connected, the degree of a dot etc. And when we do not have an extremly huge amount of dots, a category is a graph. So in this case Category theory is just a special case of graph theory.
              On the other hand, graph theory (and everything else) may be studied abstractly in category theory, so we could say that graph theory is a special object of study in category theory.



              My conclusion Is that the largest similarity (and why people think they are similar) is the way we visualize the two.







              share|cite|improve this answer












              share|cite|improve this answer



              share|cite|improve this answer










              answered Apr 17 '15 at 13:35









              Ove Ahlman

              3,96311026




              3,96311026







              • 8




                Size issues? That's not the point. Categories allow us to compose arrows. This is the difference to graphs. Composition is not an extra rule. It is extra structure. Also, every graph produces a category, the path category, and conversely any (small) category has an underlying graph. It is not correct that a category is a graph, though. In particular, the conclusion "So in this case Category theory is just a special case of graph theory" is absolutey wrong. What is a commutative diagram in a graph?
                – Martin Brandenburg
                Apr 17 '15 at 15:23











              • Seconded. Just to add two usual alternative technical terms: in the above answer, in "Composition is not an extra rule. It is extra structure." one can replace "rule" with "axiom" and "structure" with "data" to arrive at: Composition is not an extra axiom. It is extra data.
                – Peter Heinig
                Aug 1 '17 at 10:55












              • 8




                Size issues? That's not the point. Categories allow us to compose arrows. This is the difference to graphs. Composition is not an extra rule. It is extra structure. Also, every graph produces a category, the path category, and conversely any (small) category has an underlying graph. It is not correct that a category is a graph, though. In particular, the conclusion "So in this case Category theory is just a special case of graph theory" is absolutey wrong. What is a commutative diagram in a graph?
                – Martin Brandenburg
                Apr 17 '15 at 15:23











              • Seconded. Just to add two usual alternative technical terms: in the above answer, in "Composition is not an extra rule. It is extra structure." one can replace "rule" with "axiom" and "structure" with "data" to arrive at: Composition is not an extra axiom. It is extra data.
                – Peter Heinig
                Aug 1 '17 at 10:55







              8




              8




              Size issues? That's not the point. Categories allow us to compose arrows. This is the difference to graphs. Composition is not an extra rule. It is extra structure. Also, every graph produces a category, the path category, and conversely any (small) category has an underlying graph. It is not correct that a category is a graph, though. In particular, the conclusion "So in this case Category theory is just a special case of graph theory" is absolutey wrong. What is a commutative diagram in a graph?
              – Martin Brandenburg
              Apr 17 '15 at 15:23





              Size issues? That's not the point. Categories allow us to compose arrows. This is the difference to graphs. Composition is not an extra rule. It is extra structure. Also, every graph produces a category, the path category, and conversely any (small) category has an underlying graph. It is not correct that a category is a graph, though. In particular, the conclusion "So in this case Category theory is just a special case of graph theory" is absolutey wrong. What is a commutative diagram in a graph?
              – Martin Brandenburg
              Apr 17 '15 at 15:23













              Seconded. Just to add two usual alternative technical terms: in the above answer, in "Composition is not an extra rule. It is extra structure." one can replace "rule" with "axiom" and "structure" with "data" to arrive at: Composition is not an extra axiom. It is extra data.
              – Peter Heinig
              Aug 1 '17 at 10:55




              Seconded. Just to add two usual alternative technical terms: in the above answer, in "Composition is not an extra rule. It is extra structure." one can replace "rule" with "axiom" and "structure" with "data" to arrive at: Composition is not an extra axiom. It is extra data.
              – Peter Heinig
              Aug 1 '17 at 10:55










              up vote
              1
              down vote














              A deductive system is a graph in which to each object $A$ there is associated an arrow $1_A: Ato A$, the identity arrow, and to each pair of arrows $f:Ato B$ and $g:Bto C$ there is associated an arrow $gf:Ato C$, the composition of $f$ and $g$.



              A logician may think of the objects as formulas and of the arrows as deductions or proofs, hence of



              $$fracf:Ato B qquad g:Bto Cgf:Ato C$$



              as a rule of inference.



              A category is a deductive system in which the following equations hold for all $f:Ato B$, $g:Bto C$ and $h:Cto D$:



              $$f1_A=f=1_Bf$$
              $$(hg)f=h(gf)$$




              (Lambek & Scott. Introduction to higher order categorical logic, p. 5)



              In summary: Lambek and Scott define a deductive system as a (directed) graph with units and compositions (alias modus ponens, alias rule of inference) and a category as a deductive system where the 'ususal' laws hold for units and rule of inference.






              share|cite|improve this answer
























                up vote
                1
                down vote














                A deductive system is a graph in which to each object $A$ there is associated an arrow $1_A: Ato A$, the identity arrow, and to each pair of arrows $f:Ato B$ and $g:Bto C$ there is associated an arrow $gf:Ato C$, the composition of $f$ and $g$.



                A logician may think of the objects as formulas and of the arrows as deductions or proofs, hence of



                $$fracf:Ato B qquad g:Bto Cgf:Ato C$$



                as a rule of inference.



                A category is a deductive system in which the following equations hold for all $f:Ato B$, $g:Bto C$ and $h:Cto D$:



                $$f1_A=f=1_Bf$$
                $$(hg)f=h(gf)$$




                (Lambek & Scott. Introduction to higher order categorical logic, p. 5)



                In summary: Lambek and Scott define a deductive system as a (directed) graph with units and compositions (alias modus ponens, alias rule of inference) and a category as a deductive system where the 'ususal' laws hold for units and rule of inference.






                share|cite|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote










                  A deductive system is a graph in which to each object $A$ there is associated an arrow $1_A: Ato A$, the identity arrow, and to each pair of arrows $f:Ato B$ and $g:Bto C$ there is associated an arrow $gf:Ato C$, the composition of $f$ and $g$.



                  A logician may think of the objects as formulas and of the arrows as deductions or proofs, hence of



                  $$fracf:Ato B qquad g:Bto Cgf:Ato C$$



                  as a rule of inference.



                  A category is a deductive system in which the following equations hold for all $f:Ato B$, $g:Bto C$ and $h:Cto D$:



                  $$f1_A=f=1_Bf$$
                  $$(hg)f=h(gf)$$




                  (Lambek & Scott. Introduction to higher order categorical logic, p. 5)



                  In summary: Lambek and Scott define a deductive system as a (directed) graph with units and compositions (alias modus ponens, alias rule of inference) and a category as a deductive system where the 'ususal' laws hold for units and rule of inference.






                  share|cite|improve this answer













                  A deductive system is a graph in which to each object $A$ there is associated an arrow $1_A: Ato A$, the identity arrow, and to each pair of arrows $f:Ato B$ and $g:Bto C$ there is associated an arrow $gf:Ato C$, the composition of $f$ and $g$.



                  A logician may think of the objects as formulas and of the arrows as deductions or proofs, hence of



                  $$fracf:Ato B qquad g:Bto Cgf:Ato C$$



                  as a rule of inference.



                  A category is a deductive system in which the following equations hold for all $f:Ato B$, $g:Bto C$ and $h:Cto D$:



                  $$f1_A=f=1_Bf$$
                  $$(hg)f=h(gf)$$




                  (Lambek & Scott. Introduction to higher order categorical logic, p. 5)



                  In summary: Lambek and Scott define a deductive system as a (directed) graph with units and compositions (alias modus ponens, alias rule of inference) and a category as a deductive system where the 'ususal' laws hold for units and rule of inference.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Jul 23 at 15:27









                  FWE

                  855615




                  855615






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1239027%2fis-category-theory-similar-to-graph-theory%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      這個網誌中的熱門文章

                      How to combine Bézier curves to a surface?

                      Carbon dioxide

                      Why am i infinitely getting the same tweet with the Twitter Search API?