Linked Questions

17
votes
3answers
876 views

How to find the outline of a country given the imperfect outlines of its administrative subdivisions?

I have a larger outline divided into several regions. While my data represents something else, let us think of this as the provinces/counties of a country, for the sake of simplicity. This is, for ...
16
votes
3answers
883 views

House of Santa Claus

The house of Santa Claus is an old German drawing game for small children. You have to draw a house in one line.  You must not lift your pencil while drawing. $\color{red}{\text{You must not repeat a ...
11
votes
4answers
639 views

ListPlot join points by nearest neighbor rather than order

I have found some software that allows me to "data mine" the values from publication figures. I have a bunch of contours from papers that I've mined using this software, and am having some trouble ...
8
votes
3answers
1k views

Get all pairs of same consecutive characters from string?

Consider a string like: str = "AabHHioPjggtYuggbwq"; I would like to have a function getpairs[x_String] that would extract ...
7
votes
3answers
522 views

How do I “read out” the vertex names on this graph?

While working to self-answer FindCurvePath for lines (rather than points) using Graph functions I came upon a seemingly silly conundrum: how do I programmatically ...
7
votes
3answers
1k views

Postfix with two arguments

This must be a duplicate but I can't find any related post. I want to pass two arguments to a function using postfix syntax like f[a_,b_]:=a+b; 1,2//f More ...
5
votes
2answers
383 views

How to make a disconnected graph to be 1-edge-connected(but not 2-edge-connected) with some shortest edge

Assume I have a graph.You can run following code to get it. ...
4
votes
1answer
172 views

Custom interpolation algorithm

Suppose I have a list to create a list density plot, the list format is: list = {{0.5, 0.5, 0.0}, {-0.5, 0.5, 1.0}, {1.0, -0.45, 0.0}, {0.0, 0.0, 0.0}} The size ...
24
votes
0answers
466 views

LibraryLink: What can we do with MInputStream and MOutputStream?

Version 9 introduced the WolframStreamsLibrary.h header for LibraryLink. It contains MInputStream and ...
2
votes
2answers
250 views

How to connect some separate components with shortest total length line

Maybe this question is too hard. So I try to make a simple version to research. Simulating a simple graph than that post. ...
4
votes
1answer
222 views

How to rapidly find the nearest pairs of points in different clusters

Background For speed up this question or this question,I have such need. Current try: Suppose I have $3$ clusters of points: ...