Linked Questions

5 votes
2 answers
195 views

Why don't Part, Apply and other standard tools work with Region objects? [duplicate]

Consider the following discretization of a region object: region = DiscretizeRegion[Disk[], MaxCellMeasure -> ∞] Head[region] InputForm[region] which returns ...
Emilio Pisanty's user avatar
2 votes
1 answer
115 views

How to extract argument of MeshRegion-Object? [duplicate]

Consider examplary a MeshRegion-Object test = MeshRegion[{{0, 0}, {1, 0}, {2,1/2}, {2, -1/2}}, {Line[{1, 2}], Line[{2, 3}],Line[{3, 4}],Line[{4, 2}]}]; Looking ...
Ulrich Neumann's user avatar
3 votes
0 answers
79 views

How to convert Graph atomic object back into unevaluated expression? [duplicate]

For the purposes of further development of my shortInputForm function, I wish to convert Atomic objects such as Graph into non-...
Alexey Popkov's user avatar
16 votes
3 answers
523 views

Evaluated vs. unevaluated Association

This question might have a remote connection to my older question, it is also about sameness of expressions and subtle differences observable only in certain forms. I encountered this strange ...
Vladimir Reshetnikov's user avatar
15 votes
5 answers
949 views

Removing edge weights from a Graph

Bug introduced in 8.0 and fixed in 12.2. How can I remove EdgeWeights from a Graph without affecting any other properties of ...
Szabolcs's user avatar
  • 231k
17 votes
2 answers
285 views

Is it OK that SameQ considers expressions identical, although they have different structure?

...
Vladimir Reshetnikov's user avatar
8 votes
1 answer
2k views

Region from points

Is there a built-in way to define a 3D region from an arbitrary list of points. The points will represent vertices of the edges of the region and we can assume that 1) they are not all on the same ...
BenP1192's user avatar
  • 914
14 votes
1 answer
255 views

Fractional Keys in Associations

I got into an unfortunate situation, involving fractions that can get changed by evaluation, which occur as (part of) keys in my associations. I will probably steer far away from the entire situation, ...
Jacob Akkerboom's user avatar
10 votes
1 answer
308 views

What is idiomatic way to extract NumericArray from Image?

It is easy to see that NumericArray is a construct underlying Image: ...
Alexey Popkov's user avatar
8 votes
1 answer
787 views

Remove or change edge weights of graph with good performance

How can I remove edge weights from a graph, or change all edge weights in one go, with good performance, while preserving edge ordering? Consider this weight vector and unweighted graph: ...
Szabolcs's user avatar
  • 231k
8 votes
2 answers
321 views

Why equivalent Graph objects yield different results?

Bug introduced in 10.0 or earlier and fixed in 12.0. I am working with Mma 11.2 for win 7. I am confusing about the results returned by ConnectedGraphQ described ...
WateSoyan's user avatar
  • 1,814
3 votes
2 answers
334 views

How do I change the Head of Graph into List?

I am trying to change the Head of b (a NeighborhoodGraph) from Graph into List but Apply seems to fail. I start with a list of connected vertices: ...
Themis's user avatar
  • 783
5 votes
1 answer
320 views

How to represent 1 as Symbol["Integer"]

Maybe this is a boring question, but I cannot figure it out. Because every expression has a Head, and Head[1] is ...
Kattern's user avatar
  • 2,521
3 votes
2 answers
133 views

How do I replace expressions inside a Graph object?

Say I have a Graph with some labels, and I want to change one of the labels. For example ...
glS's user avatar
  • 7,513
6 votes
1 answer
101 views

How to test if an Audio object is file backed and extract the file path?

Audio objects can be file backed and support out of core processing. How can I test if an Audio object is file backed and ...
Szabolcs's user avatar
  • 231k

15 30 50 per page