(uids []uint64)
| 795 | } |
| 796 | |
| 797 | func (sg *SubGraph) populate(uids []uint64) error { |
| 798 | // Put sorted entries in matrix. |
| 799 | sort.Slice(uids, func(i, j int) bool { return uids[i] < uids[j] }) |
| 800 | sg.uidMatrix = []*pb.List{{Uids: uids}} |
| 801 | // User specified list may not be sorted. |
| 802 | sg.SrcUIDs = &pb.List{Uids: uids} |
| 803 | return nil |
| 804 | } |
| 805 | |
| 806 | // newGraph returns the SubGraph and its task query. |
| 807 | func newGraph(ctx context.Context, gq *dql.GraphQuery) (*SubGraph, error) { |
no test coverage detected