GithubHelp home page GithubHelp logo

Comments (11)

viyx avatar viyx commented on June 9, 2024 1

Oh, I see, there is no contradicton now, I was wrong in the previous post. No more questions, thanks

from toponetx.

mhajij avatar mhajij commented on June 9, 2024

The definition has been related a little in the new version to meet Def 9 here

image

the above definition allows the creation of hypergraph when ranks are all equal.

from toponetx.classes import CombinatorialComplex as CCC

example = CCC()

example.add_cell([1,2], rank=1)
example.add_cell([1,2], rank=2)

when you add the second cell, the first one gets deleted and replaced by the second one.

You should access the cells with example.cells or example.skeleton(1) etc not with example.cells.hyperedge_dict


for the example

from toponetx.classes import CombinatorialComplex as CCC

example = CCC()

example.add_cell([1], rank=1)
example.add_cell([1], rank=2)

I just made merged a PR to address this issue to make it match the definition above. Let me know if this answers your question so that I close this issue.

from toponetx.

viyx avatar viyx commented on June 9, 2024

Thanks for the quick response. I got the exception from your code, now it's clear that there cant be the same vertices and cells, vertices are prioritorized.
Screenshot 2023-11-12 at 12 31 39

As I can see, there is still a contradiction with Def 9. From Def 9 we can get cells of rank>0 which are the vertices(rank=0). Even so could you clarify what is the definition of CCC in this repository now, to undestand how to work with CCC properly?

from toponetx.

mhajij avatar mhajij commented on June 9, 2024

I'm not sure what behavior you are seeking. Can you be specific?
Def 9 implies that cells with single elements can only have rank 0. This is why an exception is given.

from toponetx.

viyx avatar viyx commented on June 9, 2024

Sorry, I'm confused again)

Is it legal CCC, where am I wrong?

Let S = {a,b,c}, X = {{a}, {bc}}, rk(a) = 3, rk(bc) = 1

It has vertice of rank=3 and at the same time satisfy Def 9.

from toponetx.

mhajij avatar mhajij commented on June 9, 2024

Hello,

No it's not legal. X is not valid here for ccc because it must contain all elements of S. Once that happens it cannot have a and in two different ranks, only the lower one, in this case rank zero.

from toponetx.

viyx avatar viyx commented on June 9, 2024

Ok, I got that X is not valid, bad example from me

But this one looks legal
Let S = {a,b,c}, X = {{a}, {b}, {c}, {bc}}, rk(a) = rk(bc) = rk(b) = rk(c) = 3

from toponetx.

mhajij avatar mhajij commented on June 9, 2024

Ok, I got that X is not valid, bad example from me

But this one looks legal Let S = {a,b,c}, X = {{a}, {b}, {c}, {bc}}, rk(a) = rk(bc) = rk(b) = rk(c) = 3
the defintion forces

axiom 1 in def makes it impossible to create the above example/

rk(a) = rk(b) = rk(c) to be zero because they are singletons. All elements of S must have rank zero. Hence rk(b) and rk(c) cannot be 3.

from toponetx.

viyx avatar viyx commented on June 9, 2024

Ok, I got that X is not valid, bad example from me

But this one looks legal Let S = {a,b,c}, X = {{a}, {b}, {c}, {bc}}, rk(a) = rk(bc) = rk(b) = rk(c) = 3

What definition do you use? Acoording to this one
Screenshot 2023-11-12 at 08 09 26

Axiom 1 is satisfied, all singletons s in X
Axiom 2 is satisfied, 3 <= rk(bc) <= rk(b) <= rk(c) <= 3

from toponetx.

mhajij avatar mhajij commented on June 9, 2024

Ok I see the source of confusion. We actually consider remark

image

for our implemenation which forces the singularities to have zero ranks.
In other words, in TopoNetX, you can assume that the definition is 9 + the remark above. So in your example, a valid CCC :

rk(a) (must be) =0, rk(b) (must be) =0, rk(c) (must be) =0

from toponetx.

viyx avatar viyx commented on June 9, 2024

Ok, and what is about axiom2, if I modify a bit my exmaple

Let S = {a,b,c}, X = {{a}, {b}, {c}, {bc}}, rk(a) = rk(bc) = rk(b) = rk(c) = 0

Again all axioms is satisfied, including remark 4.1

Axiom 1 is satisfied, all singletons s in X and their rank 0
Axiom 2 is satisfied, 0 <= rk(bc) <= rk(b) <= rk(c) <= 0

from toponetx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.