nebneuron / Simplicial.jl

A package for various computations with simplicial complexes, combinatorial codes, directed complexes and their filtrations.
Other
27 stars 9 forks source link

conversion of (filtrations of) simplicial complex(es) to directed complexes #12

Closed vitskov closed 5 years ago

vitskov commented 6 years ago

vertices of directed complexes have fixed type: Array{Int16,1}

conversion is a pain, since currently simplicial complexes and combinatorial codes are created with arbitrary type.

Needed: function DirectedCodeword(sigma::CodeWord)::DirectedCodeword

sekunder commented 6 years ago
  1. What is the canonical sorting order for sigma? Julia does not guarantee that the elements of a Set are stored in any particular order.
  2. Can you provide a short snippet of code demonstrating the problem?
vitskov commented 6 years ago

This is I currently do to run around this problem:

function ConvertToDirectedCodeword(σ::Union{CodeWord,Set{Int8}})::DirectedCodeword if isempty(σ) return EmptyDirectedCodeword else return TheIntegerType.(sort(collect(σ))); end end

On Jun 13, 2018, at 10:07, Alex Kunin notifications@github.com wrote:

• What is the canonical sorting order for sigma? Julia does not guarantee that the elements of a Set are stored in any particular order. • Can you provide a short snippet of code demonstrating the problem? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

vitskov commented 5 years ago

.